From dc446c340459d00ee81ea4af7d38892119331c67 Mon Sep 17 00:00:00 2001 From: Zhouxiang Zhan Date: Mon, 8 Apr 2019 15:49:15 +0800 Subject: [PATCH] [Update] fix the example error in 01.1.md the example in 01.1.md, line 312, it should be io.SeekEnd rather than io.SEEK_END. --- chapter01/01.1.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter01/01.1.md b/chapter01/01.1.md index c7544cc..e45dc32 100644 --- a/chapter01/01.1.md +++ b/chapter01/01.1.md @@ -309,7 +309,7 @@ type Seeker interface { ```go reader := strings.NewReader("Go语言中文网") -reader.Seek(-6, io.SEEK_END) +reader.Seek(-6, io.SeekEnd) r, _, _ := reader.ReadRune() fmt.Printf("%c\n", r) ```