Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
b050a1b2
Commit
b050a1b2
authored
Nov 23, 2009
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix doc striing for NewReadLogger.
Fixes #315. R=rsc
https://golang.org/cl/157140
parent
dc30800c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
logger.go
src/pkg/testing/iotest/logger.go
+2
-2
No files found.
src/pkg/testing/iotest/logger.go
View file @
b050a1b2
...
@@ -47,8 +47,8 @@ func (l *readLogger) Read(p []byte) (n int, err os.Error) {
...
@@ -47,8 +47,8 @@ func (l *readLogger) Read(p []byte) (n int, err os.Error) {
return
;
return
;
}
}
// NewReadLogger returns a
writer that behaves like w
except
// NewReadLogger returns a
reader that behaves like r
except
// that it logs (using log.Stdout) each
write
to standard output,
// that it logs (using log.Stdout) each
read
to standard output,
// printing the prefix and the hexadecimal data written.
// printing the prefix and the hexadecimal data written.
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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment