mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00
parent
3265bd54b5
commit
4bfaa43eed
@ -238,6 +238,8 @@ macro_rules! write {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Use the `format!` syntax to write data into a buffer, appending a newline.
|
/// 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].
|
/// This macro is typically used with a buffer of `&mut `[`Write`][write].
|
||||||
///
|
///
|
||||||
|
@ -98,7 +98,9 @@ macro_rules! print {
|
|||||||
($($arg:tt)*) => ($crate::io::_print(format_args!($($arg)*)));
|
($($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.
|
/// Use the `format!` syntax to write data to the standard output.
|
||||||
/// See `std::fmt` for more information.
|
/// See `std::fmt` for more information.
|
||||||
|
Loading…
Reference in New Issue
Block a user