Skip to content

Commit

Permalink
io: clarify SeekEnd offset value
Browse files Browse the repository at this point in the history
  • Loading branch information
howjmay committed Jun 24, 2022
1 parent 111cdb5 commit 46f93cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/io/io.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ type Closer interface {
// interpreted according to whence:
// SeekStart means relative to the start of the file,
// SeekCurrent means relative to the current offset, and
// SeekEnd means relative to the end.
// SeekEnd means relative to the end
// (for example, offset = -2 specifies the penultimate byte of the file).
// Seek returns the new offset relative to the start of the
// file or an error, if any.
//
Expand Down

0 comments on commit 46f93cf

Please sign in to comment.