diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2018-02-17 18:27:46 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2018-02-17 18:27:46 +0100 |
| commit | c5be497888712e3333e23cacfafd665e45a5a968 (patch) | |
| tree | 1200ea3dced4235976114b999d3e4433d98ff050 /src/doc | |
| parent | de8b429420dc1770be526a9e2bf67874b43994e2 (diff) | |
| download | rust-c5be497888712e3333e23cacfafd665e45a5a968.tar.gz rust-c5be497888712e3333e23cacfafd665e45a5a968.zip | |
Fix unstable book
Diffstat (limited to 'src/doc')
| -rw-r--r-- | src/doc/unstable-book/src/language-features/macro-at-most-once-rep.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/doc/unstable-book/src/language-features/macro-at-most-once-rep.md b/src/doc/unstable-book/src/language-features/macro-at-most-once-rep.md index dbaf91b6e78..ec9d85db107 100644 --- a/src/doc/unstable-book/src/language-features/macro-at-most-once-rep.md +++ b/src/doc/unstable-book/src/language-features/macro-at-most-once-rep.md @@ -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"... => {} |
