From a7a74e201188d040cb1289eb7e665334fddbd352 Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Sat, 22 Sep 2012 05:54:33 +1000 Subject: [PATCH] [release-branch.go1] io: amend ReaderFrom doc as per r's comment MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ««« backport 5d3aaf0b717e io: amend ReaderFrom doc as per r's comment R=r CC=golang-dev https://golang.org/cl/6458097 »»» --- src/pkg/io/io.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 { -- 2.50.0