We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e11b824 commit 3f17bc6Copy full SHA for 3f17bc6
std/src/macros.rs
@@ -99,9 +99,9 @@ macro_rules! println {
99
() => {
100
$crate::print!("\n")
101
};
102
- ($($arg:tt)*) => {
103
- $crate::io::_print($crate::format_args_nl!($($arg)*))
104
- };
+ ($($arg:tt)*) => {{
+ $crate::io::_print($crate::format_args_nl!($($arg)*));
+ }};
105
}
106
107
/// Prints to the standard error.
@@ -164,9 +164,9 @@ macro_rules! eprintln {
164
165
$crate::eprint!("\n")
166
167
168
- $crate::io::_eprint($crate::format_args_nl!($($arg)*))
169
+ $crate::io::_eprint($crate::format_args_nl!($($arg)*));
170
171
172
/// Prints and returns the value of a given expression for quick and dirty
0 commit comments