]> Cypherpunks repositories - gostls13.git/commit
io: use SeekStart, SeekCurrent, and SeekEnd in io.Seeker documentation
authorJoe Tsai <joetsai@digital-static.net>
Sat, 28 May 2016 09:14:25 +0000 (02:14 -0700)
committerJoe Tsai <thebrokentoaster@gmail.com>
Sun, 29 May 2016 06:52:45 +0000 (06:52 +0000)
commitb859a78e0a71d769274dac8cf0108bdf41ec55a5
tree0613cc1baced15fd723387873b402835c36ea63b
parent4969b46a316888950bd1910d7ef123883ab6c9f3
io: use SeekStart, SeekCurrent, and SeekEnd in io.Seeker documentation

The documentation previously used C style enumerations: 0, 1, 2.
While this is pretty much universally correct, it does not help a user
become aware of the existence of the SeekStart, SeekCurrent, and SeekEnd
constants. Thus, we should use them in the documentation to direct people's
attention to them.

Updates #6885

Change-Id: I44b5e78d41601c68a0a1c96428c853df53981d52
Reviewed-on: https://go-review.googlesource.com/23551
Reviewed-by: Andrew Gerrand <adg@golang.org>
src/io/io.go