Skip to content

Commit d4d33fb

Browse files
authored
Merge pull request #1683 from mesaugat/patch-1
Remove trailing semicolon from macro expression
2 parents b503da9 + 3bea64b commit d4d33fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/macros.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ macro_rules! say_hello {
1616
// `()` indicates that the macro takes no argument.
1717
() => {
1818
// The macro will expand into the contents of this block.
19-
println!("Hello!");
19+
println!("Hello!")
2020
};
2121
}
2222
2323
fn main() {
24-
// This call will expand into `println!("Hello");`
24+
// This call will expand into `println!("Hello")`
2525
say_hello!()
2626
}
2727
```

0 commit comments

Comments
 (0)