11//! Standard library macros
22//!
3- //! This modules contains a set of macros which are exported from the standard
3+ //! This module contains a set of macros which are exported from the standard
44//! library. Each macro is available for use when linking against the standard
55//! library.
66
@@ -29,9 +29,7 @@ macro_rules! panic {
2929/// Use `print!` only for the primary output of your program. Use
3030/// [`eprint!`] instead to print error and progress messages.
3131///
32- /// [`println!`]: ../std/macro.println.html
33- /// [flush]: ../std/io/trait.Write.html#tymethod.flush
34- /// [`eprint!`]: ../std/macro.eprint.html
32+ /// [flush]: crate::io::Write::flush
3533///
3634/// # Panics
3735///
@@ -74,13 +72,12 @@ macro_rules! print {
7472/// Use `println!` only for the primary output of your program. Use
7573/// [`eprintln!`] instead to print error and progress messages.
7674///
77- /// [`format!`]: ../std/macro.format.html
78- /// [`std::fmt`]: ../std/fmt/index.html
79- /// [`eprintln!`]: ../std/macro.eprintln.html
8075/// # Panics
8176///
8277/// Panics if writing to `io::stdout` fails.
8378///
79+ /// [`io::stdout`]: crate::io::stdout
80+ ///
8481/// # Examples
8582///
8683/// ```
@@ -107,8 +104,8 @@ macro_rules! println {
107104/// Use `eprint!` only for error and progress messages. Use `print!`
108105/// instead for the primary output of your program.
109106///
110- /// [`io::stderr`]: ../std/io/struct.Stderr.html
111- /// [`print! `]: ../std/macro.print.html
107+ /// [`io::stderr`]: crate::io::stderr
108+ /// [`io::stdout `]: crate::io::stdout
112109///
113110/// # Panics
114111///
@@ -135,8 +132,8 @@ macro_rules! eprint {
135132/// Use `eprintln!` only for error and progress messages. Use `println!`
136133/// instead for the primary output of your program.
137134///
138- /// [`io::stderr`]: ../std/io/struct.Stderr.html
139- /// [`println! `]: ../std/macro.println.html
135+ /// [`io::stderr`]: crate::io::stderr
136+ /// [`io::stdout `]: crate::io::stdout
140137///
141138/// # Panics
142139///
0 commit comments