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/libcore/macros.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libcore') diff --git a/src/libcore/macros.rs b/src/libcore/macros.rs index 376d2792c44..43868d124a2 100644 --- a/src/libcore/macros.rs +++ b/src/libcore/macros.rs @@ -238,6 +238,8 @@ macro_rules! write { } /// Use the `format!` syntax to write data into a buffer, appending a newline. +/// On all platforms, the newline is the LINE FEED character (`\n`/`U+000A`) +/// alone (no additional CARRIAGE RETURN (`\r`/`U+000D`). /// /// This macro is typically used with a buffer of `&mut `[`Write`][write]. /// -- cgit 1.4.1-3-g733a5