summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2009-11-23 13:51:10 -0800
committerRob Pike <r@golang.org>2009-11-23 13:51:10 -0800
commit6fb28258ee660c99bda8706db6778a964d52abac (patch)
treeac95d10732342acea8917203be726c0e78e31d96
parent7115d52e0261a407fa47ee65289b3710f8380e66 (diff)
downloadgolang-6fb28258ee660c99bda8706db6778a964d52abac.tar.gz
Fix doc striing for NewReadLogger.
Fixes issue 315. R=rsc http://codereview.appspot.com/157140
-rw-r--r--src/pkg/testing/iotest/logger.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/testing/iotest/logger.go b/src/pkg/testing/iotest/logger.go
index 0b01fcbbe..86812d7e6 100644
--- a/src/pkg/testing/iotest/logger.go
+++ b/src/pkg/testing/iotest/logger.go
@@ -47,8 +47,8 @@ func (l *readLogger) Read(p []byte) (n int, err os.Error) {
return;
}
-// NewReadLogger returns a writer that behaves like w except
-// that it logs (using log.Stdout) each write to standard output,
+// NewReadLogger returns a reader that behaves like r except
+// that it logs (using log.Stdout) each read to standard output,
// printing the prefix and the hexadecimal data written.
func NewReadLogger(prefix string, r io.Reader) io.Reader {
return &readLogger{prefix, r}