From 23fdfa8cd8d7c653fe6ed69c6ff130c9a4bba46a Mon Sep 17 00:00:00 2001 From: chai2010 Date: Sun, 15 Jul 2018 08:01:28 +0800 Subject: [PATCH] =?UTF-8?q?ch1-03:=20=E4=BF=AE=E5=A4=8D=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ch1-basic/ch1-03-array-string-and-slice.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ch1-basic/ch1-03-array-string-and-slice.md b/ch1-basic/ch1-03-array-string-and-slice.md index cbf5760..defb62c 100644 --- a/ch1-basic/ch1-03-array-string-and-slice.md +++ b/ch1-basic/ch1-03-array-string-and-slice.md @@ -298,7 +298,7 @@ func str2bytes(s string) []byte { ```go func bytes2str(s []byte) (p string) { data := make([]byte, len(s)) - for i, c := s { + for i, c := range s { data[i] = c }