File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
## Writing Error Messages to Standard Error Instead of Standard Output
2
2
3
3
At the moment, we’re writing all of our output to the terminal using the
4
- ` println! ` function . Most terminals provide two kinds of output: * standard
4
+ ` println! ` macro . Most terminals provide two kinds of output: * standard
5
5
output* (` stdout ` ) for general information and * standard error* (` stderr ` )
6
6
for error messages. This distinction enables users to choose to direct the
7
7
successful output of a program to a file but still print error messages to the
8
8
screen.
9
9
10
- The ` println! ` function is only capable of printing to standard output, so we
10
+ The ` println! ` macro is only capable of printing to standard output, so we
11
11
have to use something else to print to standard error.
12
12
13
13
### Checking Where Errors Are Written
You can’t perform that action at this time.
0 commit comments