mirror of
https://github.com/golang/go
synced 2024-11-21 16:24:40 -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:
parent
e803e1cfa6
commit
4939b7b065
@ -131,9 +131,9 @@ type ReadWriteSeeker interface {
|
||||
|
||||
// ReaderFrom is the interface that wraps the ReadFrom method.
|
||||
//
|
||||
// ReadFrom reads data from r until EOF. The return value n is the
|
||||
// number of bytes read. Any error except io.EOF encountered during
|
||||
// the read is also returned.
|
||||
// ReadFrom reads data from r until EOF or error.
|
||||
// The return value n is the number of bytes read.
|
||||
// Any error except io.EOF encountered during the read is also returned.
|
||||
//
|
||||
// The Copy function uses ReaderFrom if available.
|
||||
type ReaderFrom interface {
|
||||
|
Loading…
Reference in New Issue
Block a user