Skip to content

Commit

Permalink
[doc] src/macros.rs : correct grammar errors of an example in lib doc…
Browse files Browse the repository at this point in the history
…umentation

change semicolons to commas
  • Loading branch information
OccupyMars2025 committed May 27, 2023
1 parent f4c21c1 commit 7c4f808
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/macros.rs
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 7c4f808

Please sign in to comment.