Allow writeln! without arguments, in symmetry with println!

This commit is contained in:
Tobias Bucher
2016-12-19 16:57:23 +01:00
parent 10271ea24f
commit a0b346a349
2 changed files with 6 additions and 2 deletions

View File

@@ -112,7 +112,7 @@ macro_rules! print {
/// # Examples
///
/// ```
/// println!();
/// println!(); // prints just a newline
/// println!("hello there!");
/// println!("format {} arguments", "some");
/// ```