File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 236
236
//! writeln! // same as write but appends a newline
237
237
//! print! // the format string is printed to the standard output
238
238
//! println! // same as print but appends a newline
239
+ //! eprint! // the format string is printed to the standard error
240
+ //! eprintln! // same as eprint but appends a newline
239
241
//! format_args! // described below.
240
242
//! ```
241
243
//!
264
266
//! print!("Hello {}!", "world");
265
267
//! println!("I have a newline {}", "character at the end");
266
268
//! ```
269
+ //! ### `eprint!`
270
+ //!
271
+ //! The [`eprint!`] and [`eprintln!`] macros are identical to
272
+ //! [`print!`] and [`println!`], respectively, except they emit their
273
+ //! output to stderr.
267
274
//!
268
275
//! ### `format_args!`
269
276
//!
490
497
//! [`writeln!`]: ../../std/macro.writeln.html
491
498
//! [`write_fmt`]: ../../std/io/trait.Write.html#method.write_fmt
492
499
//! [`std::io::Write`]: ../../std/io/trait.Write.html
500
+ //! [`print!`]: ../../std/macro.print.html
493
501
//! [`println!`]: ../../std/macro.println.html
502
+ //! [`eprint!`]: ../../std/macro.eprint.html
503
+ //! [`eprintln!`]: ../../std/macro.eprintln.html
494
504
//! [`write!`]: ../../std/macro.write.html
495
505
//! [`format_args!`]: ../../std/macro.format_args.html
496
506
//! [`fmt::Arguments`]: struct.Arguments.html
You can’t perform that action at this time.
0 commit comments