Skip to content

Commit 0622cf3

Browse files
committed
Rollup merge of rust-lang#28511 - llogiq:printdoc, r=steveklabnik
This closes rust-lang#28510.
2 parents b2c7e77 + 49b1902 commit 0622cf3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/libstd/macros.rs

+8
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ macro_rules! panic {
6868
/// necessary to use `io::stdout().flush()` to ensure the output is emitted
6969
/// immediately.
7070
///
71+
/// # Panics
72+
///
73+
/// Panics if writing to `io::stdout()` fails.
74+
///
7175
/// # Examples
7276
///
7377
/// ```
@@ -99,6 +103,10 @@ macro_rules! print {
99103
/// Use the `format!` syntax to write data to the standard output.
100104
/// See `std::fmt` for more information.
101105
///
106+
/// # Panics
107+
///
108+
/// Panics if writing to `io::stdout()` fails.
109+
///
102110
/// # Examples
103111
///
104112
/// ```

0 commit comments

Comments
 (0)