From: Andrew Gerrand Date: Fri, 21 Sep 2012 19:54:33 +0000 (+1000) Subject: [release-branch.go1] io: amend ReaderFrom doc as per r's comment X-Git-Tag: go1.0.3~99 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=a7a74e201188d040cb1289eb7e665334fddbd352;p=gostls13.git [release-branch.go1] io: amend ReaderFrom doc as per r's comment ««« backport 5d3aaf0b717e io: amend ReaderFrom doc as per r's comment R=r CC=golang-dev https://golang.org/cl/6458097 »»» --- diff --git a/src/pkg/io/io.go b/src/pkg/io/io.go index 7c863c16d3..5187eff70a 100644 --- a/src/pkg/io/io.go +++ b/src/pkg/io/io.go @@ -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 {