Skip to content

Commit

Permalink
Fix unstable book
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Feb 17, 2018
1 parent de8b429 commit c5be497
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"...
=> {}
Expand Down

0 comments on commit c5be497

Please sign in to comment.