We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aaa1b6c commit cd58539Copy full SHA for cd58539
src/macros.rs
@@ -86,7 +86,10 @@ macro_rules! print {
86
#[macro_export]
87
macro_rules! println {
88
() => ($crate::print!("\n"));
89
- ($($arg:tt)*) => ($crate::io::_print(format_args!($($arg)*)))
+ ($($arg:tt)*) => ({
90
+ $crate::io::_print(format_args!($($arg)*)).await;
91
+ $crate::io::_print(format_args!("\n")).await;
92
+ })
93
}
94
95
/// Prints to the standard error.
@@ -158,6 +161,7 @@ macro_rules! eprintln {
158
161
($($arg:tt)*) => (
159
162
async {
160
163
$crate::io::_eprint(format_args!($($arg)*)).await;
164
+ $crate::io::_eprint(format_args!("\n")).await;
165
166
);
167
0 commit comments