Skip to content

Commit

Permalink
Sidestep who provides output streams. Fixes #2933.
Browse files Browse the repository at this point in the history
  • Loading branch information
carols10cents committed Dec 27, 2021
1 parent 181d031 commit 86b3fc5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ch12-06-writing-to-stderr-instead-of-stdout.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
## Writing Error Messages to Standard Error Instead of Standard Output

At the moment, we’re writing all of our output to the terminal using the
`println!` macro. Most terminals provide two kinds of output: *standard
output* (`stdout`) for general information and *standard error* (`stderr`)
for error messages. This distinction enables users to choose to direct the
`println!` macro. In most terminals, there are two kinds of output: *standard
output* (`stdout`) for general information and *standard error* (`stderr`) for
error messages. This distinction enables users to choose to direct the
successful output of a program to a file but still print error messages to the
screen.

Expand Down

0 comments on commit 86b3fc5

Please sign in to comment.