1
1
//! Standard library macros
2
2
//!
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
4
4
//! library. Each macro is available for use when linking against the standard
5
5
//! library.
6
6
@@ -29,9 +29,7 @@ macro_rules! panic {
29
29
/// Use `print!` only for the primary output of your program. Use
30
30
/// [`eprint!`] instead to print error and progress messages.
31
31
///
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
35
33
///
36
34
/// # Panics
37
35
///
@@ -74,13 +72,12 @@ macro_rules! print {
74
72
/// Use `println!` only for the primary output of your program. Use
75
73
/// [`eprintln!`] instead to print error and progress messages.
76
74
///
77
- /// [`format!`]: ../std/macro.format.html
78
- /// [`std::fmt`]: ../std/fmt/index.html
79
- /// [`eprintln!`]: ../std/macro.eprintln.html
80
75
/// # Panics
81
76
///
82
77
/// Panics if writing to `io::stdout` fails.
83
78
///
79
+ /// [`io::stdout`]: crate::io::stdout
80
+ ///
84
81
/// # Examples
85
82
///
86
83
/// ```
@@ -107,8 +104,8 @@ macro_rules! println {
107
104
/// Use `eprint!` only for error and progress messages. Use `print!`
108
105
/// instead for the primary output of your program.
109
106
///
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
112
109
///
113
110
/// # Panics
114
111
///
@@ -135,8 +132,8 @@ macro_rules! eprint {
135
132
/// Use `eprintln!` only for error and progress messages. Use `println!`
136
133
/// instead for the primary output of your program.
137
134
///
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
140
137
///
141
138
/// # Panics
142
139
///
0 commit comments