]> Cypherpunks repositories - gostls13.git/commitdiff
io: amend ReaderFrom doc as per r's comment
authorAndrew Gerrand <adg@golang.org>
Wed, 8 Aug 2012 05:41:47 +0000 (15:41 +1000)
committerAndrew Gerrand <adg@golang.org>
Wed, 8 Aug 2012 05:41:47 +0000 (15:41 +1000)
R=r
CC=golang-dev
https://golang.org/cl/6458097

src/pkg/io/io.go

index 7c863c16d32d93f571758888b06bf62e3ec4638f..5187eff70a9c5d36480f734c3336e767b4dc71be 100644 (file)
@@ -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 {