Skip to content

Commit 8b85b57

Browse files
committed
Rollup merge of #28654 - ogham:patch-2, r=sanxiyn
This was discovered by maggyero on #rust. In the [documentation for the macros in libstd](https://doc.rust-lang.org/stable/std/#macros), the first lines for `print!` and `println!` were exactly the same, with no mention of how one of them also emits a newline: <img width="622" alt="screen shot 2015-09-25 at 12 11 52" src="https://cloud.githubusercontent.com/assets/503760/10099409/465d509a-6381-11e5-9eb9-766f21a08c50.png"> This commit makes the first lines of those two macros different.
2 parents eae4821 + c6e1b12 commit 8b85b57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/macros.rs

Lines changed: 1 addition & 1 deletion
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)