Skip to content

Commit

Permalink
Merge pull request #562 from OccupyMars2025/patch-1
Browse files Browse the repository at this point in the history
[doc] src/macros.rs :  correct  grammar errors of an example in lib documentation
  • Loading branch information
JohnTitor authored May 27, 2023
2 parents f4c21c1 + 7c4f808 commit 3ea1c66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
/// ```
#[macro_export(local_inner_macros)]
macro_rules! log {
// log!(target: "my_target", Level::Info; key1 = 42, key2 = true; "a {} event", "log");
// log!(target: "my_target", Level::Info, key1 = 42, key2 = true; "a {} event", "log");
(target: $target:expr, $lvl:expr, $($key:tt = $value:expr),+; $($arg:tt)+) => ({
let lvl = $lvl;
if lvl <= $crate::STATIC_MAX_LEVEL && lvl <= $crate::max_level() {
Expand All @@ -42,7 +42,7 @@ macro_rules! log {
}
});

// log!(target: "my_target", Level::Info; "a {} event", "log");
// log!(target: "my_target", Level::Info, "a {} event", "log");
(target: $target:expr, $lvl:expr, $($arg:tt)+) => ({
let lvl = $lvl;
if lvl <= $crate::STATIC_MAX_LEVEL && lvl <= $crate::max_level() {
Expand Down

0 comments on commit 3ea1c66

Please sign in to comment.