about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorTobias Bucher <tobiasbucher5991@gmail.com>2016-12-19 16:57:23 +0100
committerTobias Bucher <tobiasbucher5991@gmail.com>2016-12-19 16:57:23 +0100
commita0b346a34936c6ed88ad9680069c0300b0c068d8 (patch)
tree5c9d44550724d6ed3cb975aad4b68f8bd284dcc9 /src/libstd
parent10271ea24fbd7b28a42df8eb02a8dcf6d6132d71 (diff)
downloadrust-a0b346a34936c6ed88ad9680069c0300b0c068d8.tar.gz
rust-a0b346a34936c6ed88ad9680069c0300b0c068d8.zip
Allow `writeln!` without arguments, in symmetry with `println!`
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/macros.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/macros.rs b/src/libstd/macros.rs
index 0ce6b0a9431..52c6da58151 100644
--- a/src/libstd/macros.rs
+++ b/src/libstd/macros.rs
@@ -112,7 +112,7 @@ macro_rules! print {
 /// # Examples
 ///
 /// ```
-/// println!();
+/// println!(); // prints just a newline
 /// println!("hello there!");
 /// println!("format {} arguments", "some");
 /// ```