Fix unstable book
This commit is contained in:
parent
de8b429420
commit
c5be497888
1 changed files with 3 additions and 0 deletions
|
@ -6,7 +6,10 @@ With this feature gate enabled, one can use `?` as a Kleene operator meaning "0
|
|||
or 1 repetitions" in a macro definition. Previously only `+` and `*` were allowed.
|
||||
|
||||
For example:
|
||||
|
||||
```rust
|
||||
#![feature(macro_at_most_once_rep)]
|
||||
|
||||
macro_rules! foo {
|
||||
(something $(,)?) // `?` indicates `,` is "optional"...
|
||||
=> {}
|
||||
|
|
Loading…
Add table
Reference in a new issue