From 77542a90e5207459e8788bc99daa819ccbb0b404 Mon Sep 17 00:00:00 2001 From: sfw Date: Wed, 8 Aug 2018 11:06:57 +0800 Subject: [PATCH] ch1-3-fix indentation --- ch1-basic/ch1-03-array-string-and-slice.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ch1-basic/ch1-03-array-string-and-slice.md b/ch1-basic/ch1-03-array-string-and-slice.md index 163c2d2..6d91639 100644 --- a/ch1-basic/ch1-03-array-string-and-slice.md +++ b/ch1-basic/ch1-03-array-string-and-slice.md @@ -318,9 +318,9 @@ func bytes2str(s []byte) (p string) { func str2runes(s []byte) []rune { var p []int32 for len(s) > 0 { - r, size := utf8.DecodeRuneInString(s) + r, size := utf8.DecodeRuneInString(s) p = append(p, r) - s = s[size:] + s = s[size:] } return []rune(p) }