Skip to content

Commit f6c8b92

Browse files
authored
Merge pull request #182 from lzutao/patch-1
Fix syntax highlighting in macro guide
2 parents dbd936b + 4729949 commit f6c8b92

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rust-2018/macros/at-most-once.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ In Rust 2018, we have made a couple of changes to the macros-by-example syntax.
1212

1313
For example, consider the following Rust 2015 code:
1414

15-
```rust2018
15+
```rust
1616
macro_rules! foo {
1717
($a:ident, $b:expr) => {
1818
println!("{}", $a);
1919
println!("{}", $b);
20-
}
20+
};
2121
($a:ident) => {
2222
println!("{}", $a);
2323
}
@@ -29,7 +29,7 @@ but you need a whole other matcher to represent this possibility. This is
2929
annoying if your matchers are long. In Rust 2018, one can simply write the
3030
following:
3131

32-
```rust2018
32+
```rust
3333
macro_rules! foo {
3434
($a:ident $(, $b:expr)?) => {
3535
println!("{}", $a);

0 commit comments

Comments
 (0)