mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 06:19:44 +08:00
modified: eBook/18.1.md
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
```go
|
||||
str:="hello"
|
||||
c:=[]byte(s)
|
||||
c:=[]byte(str)
|
||||
c[0]='c'
|
||||
s2:= string(c) // s2 == "cello"
|
||||
```
|
||||
|
Reference in New Issue
Block a user