Skip to content

Commit ab2c46c

Browse files
committed
rust 2018
1 parent d3e8729 commit ab2c46c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ In Rust 2018, we have made a couple of changes to the macros-by-example syntax.
88

99
For example, consider the following Rust 2015 code:
1010

11-
```rust
11+
```rust2018
1212
macro_rules! foo {
1313
($a:ident, $b:expr) => {
1414
println!("{}", $a);
@@ -25,7 +25,7 @@ but you need a whole other matcher to represent this possibility. This is
2525
annoying if your matchers are long. In Rust 2018, one can simply write the
2626
following:
2727

28-
```rust
28+
```rust2018
2929
macro_rules! foo {
3030
($a:ident $(, $b:expr)?) => {
3131
println!("{}", $a);

0 commit comments

Comments
 (0)