Skip to content

Commit d79ddd0

Browse files
authored
Merge pull request #617 from rust-lang-nursery/2015-supports-kleene-question
Rust 2015 supports Kleene ? macro operator
2 parents 41a203e + b068c62 commit d79ddd0

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/macros-by-example.md

+2-6
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
> _MacroRepSep_ :\
3434
> &nbsp;&nbsp; [_Token_]<sub>_except delimiters and repetition operators_</sub>
3535
>
36-
> _MacroRepOp_<sub>2018+</sub> :\
37-
> &nbsp;&nbsp; `*` | `+` | `?`<sub>2018+</sub>
36+
> _MacroRepOp_ :\
37+
> &nbsp;&nbsp; `*` | `+` | `?`
3838
>
3939
> _MacroTranscriber_ :\
4040
> &nbsp;&nbsp; [_DelimTokenTree_]
@@ -181,10 +181,6 @@ compiler knows how to expand them properly:
181181
illegal because it does not have the same number. This requirement applies
182182
to every layer of nested repetitions.
183183

184-
> **Edition Differences**: The `?` repetition operator did not exist before the
185-
> 2018 edition. Prior to the 2018 Edition, `?` was an allowed
186-
> separator token, rather than a repetition operator.
187-
188184
## Scoping, Exporting, and Importing
189185

190186
For historical reasons, the scoping of macros by example does not work entirely like

0 commit comments

Comments
 (0)