]> git.lizzy.rs Git - rust.git/commitdiff
parser: improve `parse_pat_with_or` docs.
authorMazdak Farrokhzad <twingoow@gmail.com>
Sun, 18 Aug 2019 16:15:17 +0000 (18:15 +0200)
committerMazdak Farrokhzad <twingoow@gmail.com>
Sat, 24 Aug 2019 19:32:48 +0000 (21:32 +0200)
src/libsyntax/parse/parser/pat.rs

index 3af64cef74f26a0eb5f8c1ed9fa35b35b6a54b30..14ac509d6f706d33b535b7973be2074f698ef021 100644 (file)
@@ -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<allow_top_alt>` in RFC 2535.
     fn parse_pat_with_or(
         &mut self,
         expected: Expected,