Skip to content

Commit 1e284cd

Browse files
authored
Merge pull request #956 from feamcor/master
Mention to eprint! and eprintln!
2 parents 351a969 + 770ce89 commit 1e284cd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/hello/print.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ Printing is handled by a series of [`macros`][macros] defined in [`std::fmt`][fm
44
some of which include:
55

66
* `format!`: write formatted text to [`String`][string]
7-
* `print!`: same as `format!` but the text is printed to the console.
7+
* `print!`: same as `format!` but the text is printed to the console (io::stdout).
88
* `println!`: same as `print!` but a newline is appended.
9+
* `eprint!`: same as `format!` but the text is printed to the standard error (io::stderr).
10+
* `eprintln!`: sames as `eprint!`but a newline is appended.
911

1012
All parse text in the same fashion. A plus is that the formatting correctness will
1113
be checked at compile time.

0 commit comments

Comments
 (0)