mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
testing/iotest: fix copy/paste error in comment
Reported via unsupported GitHub pull request: https://github.com/golang/go/pull/9436/ Change-Id: I12b00e8ccac700bb36b200196e2867fcc863fdf1 Reviewed-on: https://go-review.googlesource.com/2139 Reviewed-by: Alan Donovan <adonovan@google.com>
This commit is contained in:
parent
29b4e34cf2
commit
c85a2bf9c2
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ func (l *readLogger) Read(p []byte) (n int, err error) {
|
||||||
|
|
||||||
// NewReadLogger returns a reader that behaves like r except
|
// 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.Print) each read to standard error,
|
||||||
// printing the prefix and the hexadecimal data written.
|
// printing the prefix and the hexadecimal data read.
|
||||||
func NewReadLogger(prefix string, r io.Reader) io.Reader {
|
func NewReadLogger(prefix string, r io.Reader) io.Reader {
|
||||||
return &readLogger{prefix, r}
|
return &readLogger{prefix, r}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue