io: clarify SeekEnd offset value

fxies #53474
This commit is contained in:
HowJMay 2022-06-23 01:39:25 +07:00
parent 111cdb5848
commit 46f93cfbd4

View file

@ -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.
//