From: Mazdak Farrokhzad Date: Sun, 18 Aug 2019 16:15:17 +0000 (+0200) Subject: parser: improve `parse_pat_with_or` docs. X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=dc5bbaf7b2df8dc2be6c0f1a9973867e5519300b;p=rust.git parser: improve `parse_pat_with_or` docs. --- 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 @@ fn skip_pat_list(&mut self) -> PResult<'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` in RFC 2535. fn parse_pat_with_or( &mut self, expected: Expected,