diff options
| author | David Alber <alber.david@gmail.com> | 2017-11-22 20:44:05 -0800 |
|---|---|---|
| committer | David Alber <alber.david@gmail.com> | 2017-11-22 20:44:05 -0800 |
| commit | 2f51f671c46efe91e803de8ab02fc5d379c089a8 (patch) | |
| tree | e9a64242a96ab393d08595acbc0e2d4d150ce80a /src/liballoc | |
| parent | 1dc0b573e7ce4314eb196b21b7e0ea4a1bf1f673 (diff) | |
| download | rust-2f51f671c46efe91e803de8ab02fc5d379c089a8.tar.gz rust-2f51f671c46efe91e803de8ab02fc5d379c089a8.zip | |
Adding `eprint*!` to the list of macros in the `format!` family
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/fmt.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/liballoc/fmt.rs b/src/liballoc/fmt.rs index 7148a1143fd..a092bfb3b0a 100644 --- a/src/liballoc/fmt.rs +++ b/src/liballoc/fmt.rs @@ -236,6 +236,8 @@ //! writeln! // same as write but appends a newline //! print! // the format string is printed to the standard output //! println! // same as print but appends a newline +//! eprint! // the format string is printed to the standard error +//! eprintln! // same as eprint but appends a newline //! format_args! // described below. //! ``` //! @@ -264,6 +266,11 @@ //! print!("Hello {}!", "world"); //! println!("I have a newline {}", "character at the end"); //! ``` +//! ### `eprint!` +//! +//! The [`eprint!`] and [`eprintln!`] macros are identical to +//! [`print!`] and [`println!`], respectively, except they emit their +//! output to stderr. //! //! ### `format_args!` //! @@ -490,7 +497,10 @@ //! [`writeln!`]: ../../std/macro.writeln.html //! [`write_fmt`]: ../../std/io/trait.Write.html#method.write_fmt //! [`std::io::Write`]: ../../std/io/trait.Write.html +//! [`print!`]: ../../std/macro.print.html //! [`println!`]: ../../std/macro.println.html +//! [`eprint!`]: ../../std/macro.eprint.html +//! [`eprintln!`]: ../../std/macro.eprintln.html //! [`write!`]: ../../std/macro.write.html //! [`format_args!`]: ../../std/macro.format_args.html //! [`fmt::Arguments`]: struct.Arguments.html |
