Skip to content

Commit 820c5ab

Browse files
committed
Fix typo (use wrong format_args)
1 parent 5705ef2 commit 820c5ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rust-2018/macros/macro-changes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,15 +244,15 @@ macro_rules! __impl_log {
244244
#[macro_export(local_inner_macros)]
245245
macro_rules! warn {
246246
($($args:tt)*) => {
247-
__impl_log!($crate::LogLevel::Warn, format_args!($($args)*))
247+
__impl_log!($crate::LogLevel::Warn, _log__format_args!($($args)*))
248248
}
249249
}
250250

251251
/// Error level log message
252252
#[macro_export(local_inner_macros)]
253253
macro_rules! error {
254254
($($args:tt)*) => {
255-
__impl_log!($crate::LogLevel::Error, format_args!($($args)*))
255+
__impl_log!($crate::LogLevel::Error, _log__format_args!($($args)*))
256256
}
257257
}
258258

0 commit comments

Comments
 (0)