Skip to content

Commit e08fb5c

Browse files
author
Orion Gonzalez
committed
clarify what term can be
1 parent 44fa9ab commit e08fb5c

File tree

1 file changed

+3
-1
lines changed
  • compiler/rustc_parse/src/parser

1 file changed

+3
-1
lines changed

compiler/rustc_parse/src/parser/item.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ impl<'a> Parser<'a> {
4949
}
5050

5151
/// Parses the contents of a module (inner attributes followed by module items).
52-
/// We exit once we hit `term`
52+
/// We exit once we hit `term` which can be either
53+
/// - EOF (for files)
54+
/// - `}` for mod items
5355
pub fn parse_mod(
5456
&mut self,
5557
term: &TokenKind,

0 commit comments

Comments
 (0)