This commit is contained in:
chai2010
2015-12-21 17:25:03 +08:00
parent 38e249c65a
commit f699e83e46
6 changed files with 45 additions and 42 deletions

View File

@@ -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