print macros: add xrefs to format syntax documentation
This commit is contained in:
parent
11167071db
commit
55159e80ad
@ -41,6 +41,9 @@ macro_rules! panic {
|
||||
/// Use `print!` only for the primary output of your program. Use
|
||||
/// [`eprint!`] instead to print error and progress messages.
|
||||
///
|
||||
/// See [the formatting documentation in `std::fmt`](../std/fmt/index.html)
|
||||
/// for details of the macro argument syntax.
|
||||
///
|
||||
/// [flush]: crate::io::Write::flush
|
||||
/// [`println!`]: crate::println
|
||||
/// [`eprint!`]: crate::eprint
|
||||
@ -103,6 +106,9 @@ macro_rules! print {
|
||||
/// Use `println!` only for the primary output of your program. Use
|
||||
/// [`eprintln!`] instead to print error and progress messages.
|
||||
///
|
||||
/// See [the formatting documentation in `std::fmt`](../std/fmt/index.html)
|
||||
/// for details of the macro argument syntax.
|
||||
///
|
||||
/// [`std::fmt`]: crate::fmt
|
||||
/// [`eprintln!`]: crate::eprintln
|
||||
/// [lock]: crate::io::Stdout
|
||||
@ -150,6 +156,9 @@ macro_rules! println {
|
||||
/// [`io::stderr`]: crate::io::stderr
|
||||
/// [`io::stdout`]: crate::io::stdout
|
||||
///
|
||||
/// See [the formatting documentation in `std::fmt`](../std/fmt/index.html)
|
||||
/// for details of the macro argument syntax.
|
||||
///
|
||||
/// # Panics
|
||||
///
|
||||
/// Panics if writing to `io::stderr` fails.
|
||||
@ -181,6 +190,9 @@ macro_rules! eprint {
|
||||
/// Use `eprintln!` only for error and progress messages. Use `println!`
|
||||
/// instead for the primary output of your program.
|
||||
///
|
||||
/// See [the formatting documentation in `std::fmt`](../std/fmt/index.html)
|
||||
/// for details of the macro argument syntax.
|
||||
///
|
||||
/// [`io::stderr`]: crate::io::stderr
|
||||
/// [`io::stdout`]: crate::io::stdout
|
||||
/// [`println!`]: crate::println
|
||||
|
Loading…
Reference in New Issue
Block a user