From 4bfaa43eed7ea88fa581c875f5d1c1c801d64e5f Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Tue, 12 Jul 2016 14:37:04 +0900 Subject: doc: Mention that writeln! and println! always use LF Fixes #34697 --- src/libstd/macros.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/libstd') diff --git a/src/libstd/macros.rs b/src/libstd/macros.rs index 26cf8a3199d..6f0f6ecab5b 100644 --- a/src/libstd/macros.rs +++ b/src/libstd/macros.rs @@ -98,7 +98,9 @@ macro_rules! print { ($($arg:tt)*) => ($crate::io::_print(format_args!($($arg)*))); } -/// Macro for printing to the standard output, with a newline. +/// Macro for printing to the standard output, with a newline. On all +/// platforms, the newline is the LINE FEED character (`\n`/`U+000A`) alone +/// (no additional CARRIAGE RETURN (`\r`/`U+000D`). /// /// Use the `format!` syntax to write data to the standard output. /// See `std::fmt` for more information. -- cgit 1.4.1-3-g733a5