Skip to content

Commit

Permalink
Merge pull request #1683 from mesaugat/patch-1
Browse files Browse the repository at this point in the history
Remove trailing semicolon from macro expression
  • Loading branch information
marioidival authored Mar 21, 2023
2 parents b503da9 + 3bea64b commit d4d33fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/macros.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ macro_rules! say_hello {
// `()` indicates that the macro takes no argument.
() => {
// The macro will expand into the contents of this block.
println!("Hello!");
println!("Hello!")
};
}
fn main() {
// This call will expand into `println!("Hello");`
// This call will expand into `println!("Hello")`
say_hello!()
}
```
Expand Down

0 comments on commit d4d33fb

Please sign in to comment.