]> Cypherpunks repositories - gostls13.git/commit
io: clarify documentation for Seeker
authorJoe Tsai <joetsai@digital-static.net>
Thu, 1 Oct 2015 22:09:11 +0000 (15:09 -0700)
committerAndrew Gerrand <adg@golang.org>
Tue, 6 Oct 2015 02:06:40 +0000 (02:06 +0000)
commitdbc7203d22e782275c1cad6840b235a0bcf83288
treeff047f9178198928beb4cbfd39a0e7677f191331
parent0a486b8a06cbef96f04ec1294d2683232225da44
io: clarify documentation for Seeker

The later part of the docstring simply talks about "offset" but does
not disambiguate what it is relative to. For both the return value
and valid offsets to seek to, it only makes sense in the context of
"offset relative to origin of file".

Fixes #11877

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