From: Andrew Gerrand Date: Wed, 8 Aug 2012 05:41:47 +0000 (+1000) Subject: io: amend ReaderFrom doc as per r's comment X-Git-Tag: go1.1rc2~2674 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4939b7b065d2eee1c37201c0d42ed4dd06d22265;p=gostls13.git 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 {