From: Russ Cox Date: Thu, 27 Oct 2016 02:02:12 +0000 (-0400) Subject: os: adjust (*File).Read comment X-Git-Tag: go1.8beta1~497 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3366d6a39bbaaa011a11c651975a88d9f05e00b6;p=gostls13.git os: adjust (*File).Read comment Fixes #6639. Change-Id: Iefce87c5521504fd41843df8462cfd840c24410f Reviewed-on: https://go-review.googlesource.com/32102 Run-TryBot: Russ Cox Reviewed-by: Rob Pike --- diff --git a/src/os/file.go b/src/os/file.go index 934004f084..b9c10b2a28 100644 --- a/src/os/file.go +++ b/src/os/file.go @@ -92,8 +92,8 @@ func (e *LinkError) Error() string { } // Read reads up to len(b) bytes from the File. -// It returns the number of bytes read and an error, if any. -// EOF is signaled by a zero count with err set to io.EOF. +// It returns the number of bytes read and any error encountered. +// At end of file, Read returns 0, io.EOF. func (f *File) Read(b []byte) (n int, err error) { if err := f.checkValid("read"); err != nil { return 0, err