diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2015-09-25 13:33:32 -0600 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2015-09-25 13:33:32 -0600 |
| commit | 8b85b57ccb9a8bf837971d22dc268698f203356e (patch) | |
| tree | 4515519a26ca7214101a883ac2dd9f9fa98d74d1 /src/libstd | |
| parent | eae4821d1db0e8d0f38e343dcbf49fb172c74d80 (diff) | |
| parent | c6e1b12a58b33ecfe7793d39b28827e05d3106f5 (diff) | |
| download | rust-8b85b57ccb9a8bf837971d22dc268698f203356e.tar.gz rust-8b85b57ccb9a8bf837971d22dc268698f203356e.zip | |
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.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/macros.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/macros.rs b/src/libstd/macros.rs index a07d21add8d..a88ddb997f6 100644 --- a/src/libstd/macros.rs +++ b/src/libstd/macros.rs @@ -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. |
