Skip to content

Commit

Permalink
[Update] fix the example error in 01.1.md
Browse files Browse the repository at this point in the history
 the example in 01.1.md, line 312, it should be io.SeekEnd rather than io.SEEK_END.
  • Loading branch information
drpmma authored Apr 8, 2019
1 parent 93a785b commit dc446c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chapter01/01.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
```
Expand Down

0 comments on commit dc446c3

Please sign in to comment.