]> git.lizzy.rs Git - rust.git/commitdiff
Change the first line of the println macro doc
authorBen S <ogham@users.noreply.github.com>
Fri, 25 Sep 2015 11:29:47 +0000 (12:29 +0100)
committerBen S <ogham@users.noreply.github.com>
Fri, 25 Sep 2015 11:29:47 +0000 (12:29 +0100)
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

src/libstd/macros.rs

index a07d21add8db9c5fcb870d092f0c35a5f8383f69..a88ddb997f61d9aec982b5f35dd5791e7768e64e 100644 (file)
@@ -98,7 +98,7 @@ macro_rules! print {
     ($($arg:tt)*) => ($crate::io::_print(format_args!($($arg)*)));
 }
 
-/// Macro for printing to the standard output.
+/// Macro for printing to the standard output, with a newline.
 ///
 /// Use the `format!` syntax to write data to the standard output.
 /// See `std::fmt` for more information.