Skip to content

Commit

Permalink
io: apply changes requested
Browse files Browse the repository at this point in the history
  • Loading branch information
etnz committed Apr 13, 2020
1 parent 61d1307 commit 4c17f9a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/io/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func ExampleTeeReader() {

r = io.TeeReader(r, os.Stdout)

// reading from it will also print to stdout now!
// Everything read from r will be copied to stdout.
ioutil.ReadAll(r)

// Output:
Expand Down Expand Up @@ -230,7 +230,6 @@ func ExamplePipe() {
r, w := io.Pipe()

go func() {
// Pipe is a synchronous so we need to write in a goroutine
fmt.Fprint(w, "some io.Reader stream to be read\n")
w.Close()
}()
Expand Down

0 comments on commit 4c17f9a

Please sign in to comment.