diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-08-18 18:15:17 +0200 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-08-24 21:32:48 +0200 |
| commit | dc5bbaf7b2df8dc2be6c0f1a9973867e5519300b (patch) | |
| tree | d4aafa3737df2b6a25bded118512cae670c8d701 /src/libsyntax/parse/parser | |
| parent | 7b59b4f14dae8c859718d60794021230e1e3ac29 (diff) | |
| download | rust-dc5bbaf7b2df8dc2be6c0f1a9973867e5519300b.tar.gz rust-dc5bbaf7b2df8dc2be6c0f1a9973867e5519300b.zip | |
parser: improve `parse_pat_with_or` docs.
Diffstat (limited to 'src/libsyntax/parse/parser')
| -rw-r--r-- | src/libsyntax/parse/parser/pat.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser/pat.rs b/src/libsyntax/parse/parser/pat.rs index 3af64cef74f..14ac509d6f7 100644 --- a/src/libsyntax/parse/parser/pat.rs +++ b/src/libsyntax/parse/parser/pat.rs @@ -91,7 +91,8 @@ impl<'a> Parser<'a> { Ok(()) } - /// Parses a pattern, that may be a or-pattern (e.g. `Some(Foo | Bar)`). + /// Parses a pattern, that may be a or-pattern (e.g. `Foo | Bar` in `Some(Foo | Bar)`). + /// Corresponds to `pat<allow_top_alt>` in RFC 2535. fn parse_pat_with_or( &mut self, expected: Expected, |
