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,12 +72,13 @@ 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
75
+ /// [`std::fmt`]: crate::fmt
76
+ ///
80
77
/// # Panics
81
78
///
82
- /// Panics if writing to `io::stdout` fails.
79
+ /// Panics if writing to [`io::stdout`] fails.
80
+ ///
81
+ /// [`io::stdout`]: crate::io::stdout
83
82
///
84
83
/// # Examples
85
84
///
@@ -101,14 +100,14 @@ macro_rules! println {
101
100
/// Prints to the standard error.
102
101
///
103
102
/// Equivalent to the [`print!`] macro, except that output goes to
104
- /// [`io::stderr`] instead of `io::stdout`. See [`print!`] for
103
+ /// [`io::stderr`] instead of [ `io::stdout`] . See [`print!`] for
105
104
/// example usage.
106
105
///
107
106
/// Use `eprint!` only for error and progress messages. Use `print!`
108
107
/// instead for the primary output of your program.
109
108
///
110
- /// [`io::stderr`]: ../std/io/struct.Stderr.html
111
- /// [`print! `]: ../std/macro.print.html
109
+ /// [`io::stderr`]: crate::io::stderr
110
+ /// [`io::stdout `]: crate::io::stdout
112
111
///
113
112
/// # Panics
114
113
///
@@ -129,14 +128,14 @@ macro_rules! eprint {
129
128
/// Prints to the standard error, with a newline.
130
129
///
131
130
/// Equivalent to the [`println!`] macro, except that output goes to
132
- /// [`io::stderr`] instead of `io::stdout`. See [`println!`] for
131
+ /// [`io::stderr`] instead of [ `io::stdout`] . See [`println!`] for
133
132
/// example usage.
134
133
///
135
134
/// Use `eprintln!` only for error and progress messages. Use `println!`
136
135
/// instead for the primary output of your program.
137
136
///
138
- /// [`io::stderr`]: ../std/io/struct.Stderr.html
139
- /// [`println! `]: ../std/macro.println.html
137
+ /// [`io::stderr`]: crate::io::stderr
138
+ /// [`io::stdout `]: crate::io::stdout
140
139
///
141
140
/// # Panics
142
141
///
0 commit comments