summaryrefslogtreecommitdiff
path: root/src/pkg/bufio/example_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/bufio/example_test.go')
-rw-r--r--src/pkg/bufio/example_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/bufio/example_test.go b/src/pkg/bufio/example_test.go
index b545ce39a..08a39441e 100644
--- a/src/pkg/bufio/example_test.go
+++ b/src/pkg/bufio/example_test.go
@@ -19,7 +19,7 @@ func ExampleScanner_lines() {
fmt.Println(scanner.Text()) // Println will add back the final '\n'
}
if err := scanner.Err(); err != nil {
- fmt.Fprintln(os.Stdout, "reading standard input:", err)
+ fmt.Fprintln(os.Stderr, "reading standard input:", err)
}
}
@@ -37,7 +37,7 @@ func ExampleScanner_words() {
count++
}
if err := scanner.Err(); err != nil {
- fmt.Fprintln(os.Stdout, "reading input:", err)
+ fmt.Fprintln(os.Stderr, "reading input:", err)
}
fmt.Printf("%d\n", count)
// Output: 15