Skip to content

Commit 3b594b9

Browse files
howjmaygopherbot
authored andcommitted
io: clarify SeekEnd offset value
fixes #53474 Change-Id: I14c3dc800dc27233630a54592328bb0df1bbaa5d GitHub-Last-Rev: 46f93cf GitHub-Pull-Request: #53505 Reviewed-on: https://go-review.googlesource.com/c/go/+/413614 Reviewed-by: Ian Lance Taylor <[email protected]> Reviewed-by: Emmanuel Odeke <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Auto-Submit: Emmanuel Odeke <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]>
1 parent 4f45ec5 commit 3b594b9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/io/io.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ type Closer interface {
111111
// interpreted according to whence:
112112
// SeekStart means relative to the start of the file,
113113
// SeekCurrent means relative to the current offset, and
114-
// SeekEnd means relative to the end.
114+
// SeekEnd means relative to the end
115+
// (for example, offset = -2 specifies the penultimate byte of the file).
115116
// Seek returns the new offset relative to the start of the
116117
// file or an error, if any.
117118
//

0 commit comments

Comments
 (0)