]> Cypherpunks repositories - gostls13.git/commitdiff
Fix doc striing for NewReadLogger.
authorRob Pike <r@golang.org>
Mon, 23 Nov 2009 21:51:10 +0000 (13:51 -0800)
committerRob Pike <r@golang.org>
Mon, 23 Nov 2009 21:51:10 +0000 (13:51 -0800)
Fixes #315.

R=rsc
https://golang.org/cl/157140

src/pkg/testing/iotest/logger.go

index 0b01fcbbead78b890f6f945138df05709d7caf10..86812d7e6036a7dcb1bb75508e0d2239a6505cd9 100644 (file)
@@ -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}