We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44fa9ab commit e08fb5cCopy full SHA for e08fb5c
compiler/rustc_parse/src/parser/item.rs
@@ -49,7 +49,9 @@ impl<'a> Parser<'a> {
49
}
50
51
/// Parses the contents of a module (inner attributes followed by module items).
52
- /// We exit once we hit `term`
+ /// We exit once we hit `term` which can be either
53
+ /// - EOF (for files)
54
+ /// - `}` for mod items
55
pub fn parse_mod(
56
&mut self,
57
term: &TokenKind,
0 commit comments