Skip to content

Commit c6e1b12

Browse files
committed
Change the first line of the println macro doc
This makes the first lines of the print! and println! macros different. Previously, they would show up exactly the same in the documentation for the macros in libstd [1], with nothing about how one of them also prints a newline. [1]: https://doc.rust-lang.org/stable/std/#macros
1 parent 5ca60d9 commit c6e1b12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/macros.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ macro_rules! print {
9898
($($arg:tt)*) => ($crate::io::_print(format_args!($($arg)*)));
9999
}
100100

101-
/// Macro for printing to the standard output.
101+
/// Macro for printing to the standard output, with a newline.
102102
///
103103
/// Use the `format!` syntax to write data to the standard output.
104104
/// See `std::fmt` for more information.

0 commit comments

Comments
 (0)