Skip to content

Commit 831a469

Browse files
iluuu1994mark-i-m
authored andcommitted
Fix macro syntax error
1 parent 18c4662 commit 831a469

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/macro-expansion.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ whenever we refer to the "example _definition_", we mean the following:
1919
macro_rules! printer {
2020
(print $mvar:ident) => {
2121
println!("{}", $mvar);
22-
}
22+
};
2323
(print twice $mvar:ident) => {
2424
println!("{}", $mvar);
2525
println!("{}", $mvar);
26-
}
26+
};
2727
}
2828
```
2929

0 commit comments

Comments
 (0)