Skip to content

Commit c5be497

Browse files
Fix unstable book
1 parent de8b429 commit c5be497

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/doc/unstable-book/src/language-features/macro-at-most-once-rep.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ With this feature gate enabled, one can use `?` as a Kleene operator meaning "0
66
or 1 repetitions" in a macro definition. Previously only `+` and `*` were allowed.
77

88
For example:
9+
910
```rust
11+
#![feature(macro_at_most_once_rep)]
12+
1013
macro_rules! foo {
1114
(something $(,)?) // `?` indicates `,` is "optional"...
1215
=> {}

0 commit comments

Comments
 (0)