File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -238,6 +238,8 @@ macro_rules! write {
238
238
}
239
239
240
240
/// Use the `format!` syntax to write data into a buffer, appending a newline.
241
+ /// On all platforms, the newline is the LINE FEED character (`\n`/`U+000A`)
242
+ /// alone (no additional CARRIAGE RETURN (`\r`/`U+000D`).
241
243
///
242
244
/// This macro is typically used with a buffer of `&mut `[`Write`][write].
243
245
///
Original file line number Diff line number Diff line change @@ -98,7 +98,9 @@ macro_rules! print {
98
98
( $( $arg: tt) * ) => ( $crate:: io:: _print( format_args!( $( $arg) * ) ) ) ;
99
99
}
100
100
101
- /// Macro for printing to the standard output, with a newline.
101
+ /// Macro for printing to the standard output, with a newline. On all
102
+ /// platforms, the newline is the LINE FEED character (`\n`/`U+000A`) alone
103
+ /// (no additional CARRIAGE RETURN (`\r`/`U+000D`).
102
104
///
103
105
/// Use the `format!` syntax to write data to the standard output.
104
106
/// See `std::fmt` for more information.
You can’t perform that action at this time.
0 commit comments