mirror of
https://github.com/gopl-zh/gopl-zh.github.com.git
synced 2025-08-04 06:51:43 +00:00
zz
This commit is contained in:
@@ -10,8 +10,6 @@ fmt.Println(len(s)) // "12"
|
||||
fmt.Println(s[0], s[7]) // "104 119" ('h' and 'w')
|
||||
```
|
||||
|
||||
Attempting to access a byte outside this range results in a panic:
|
||||
|
||||
如果視圖訪問超齣字符串范圍的字節將會導致panic異常:
|
||||
|
||||
```Go
|
||||
|
Reference in New Issue
Block a user