Skip to content

Commit 17878a9

Browse files
Merge pull request #2224 from pepsiman/patch-1
println! is a macro
2 parents 86ce45d + 4338297 commit 17878a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ch12-06-writing-to-stderr-instead-of-stdout.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
## Writing Error Messages to Standard Error Instead of Standard Output
22

33
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
55
output* (`stdout`) for general information and *standard error* (`stderr`)
66
for error messages. This distinction enables users to choose to direct the
77
successful output of a program to a file but still print error messages to the
88
screen.
99

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
1111
have to use something else to print to standard error.
1212

1313
### Checking Where Errors Are Written

0 commit comments

Comments
 (0)