1
0
mirror of https://github.com/golang/go synced 2024-11-25 08:07:57 -07:00

io: amend ReaderFrom doc as per r's comment

R=r
CC=golang-dev
https://golang.org/cl/6458097
This commit is contained in:
Andrew Gerrand 2012-08-08 15:41:47 +10:00
parent e803e1cfa6
commit 4939b7b065

View File

@ -131,9 +131,9 @@ type ReadWriteSeeker interface {
// ReaderFrom is the interface that wraps the ReadFrom method. // ReaderFrom is the interface that wraps the ReadFrom method.
// //
// ReadFrom reads data from r until EOF. The return value n is the // ReadFrom reads data from r until EOF or error.
// number of bytes read. Any error except io.EOF encountered during // The return value n is the number of bytes read.
// the read is also returned. // Any error except io.EOF encountered during the read is also returned.
// //
// The Copy function uses ReaderFrom if available. // The Copy function uses ReaderFrom if available.
type ReaderFrom interface { type ReaderFrom interface {