]> Cypherpunks repositories - gostls13.git/commitdiff
testing/iotest: fix NewReadLogger documentation typo
authorArtyom Pervukhin <artyom.pervukhin@gmail.com>
Thu, 19 Oct 2017 12:49:43 +0000 (15:49 +0300)
committerIan Lance Taylor <iant@golang.org>
Thu, 19 Oct 2017 15:59:21 +0000 (15:59 +0000)
Change-Id: I094af156e7b8c31af3162d943a8c61268803ab89
Reviewed-on: https://go-review.googlesource.com/71830
Reviewed-by: Gabriel Aszalos <gabriel.aszalos@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Gabriel Aszalos <gabriel.aszalos@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/testing/iotest/logger.go

index 0aec15c575e336d6b095dfe21069c44be6329bfb..99548dcfed3bdd29d17848a261b388ef9a38fdc9 100644 (file)
@@ -47,7 +47,7 @@ func (l *readLogger) Read(p []byte) (n int, err error) {
 }
 
 // NewReadLogger returns a reader that behaves like r except
-// that it logs (using log.Print) each read to standard error,
+// that it logs (using log.Printf) each read to standard error,
 // printing the prefix and the hexadecimal data read.
 func NewReadLogger(prefix string, r io.Reader) io.Reader {
        return &readLogger{prefix, r}