Skip to content

Commit 827e572

Browse files
authored
Fix syntax highlighting in macro guide
1 parent dbd936b commit 827e572

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ 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);
@@ -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)