clarify what term can be

This commit is contained in:
Orion Gonzalez 2024-08-27 20:05:53 +02:00
parent a007d349a1
commit c35e01e48e

View file

@ -49,7 +49,9 @@ impl<'a> Parser<'a> {
} }
/// Parses the contents of a module (inner attributes followed by module items). /// Parses the contents of a module (inner attributes followed by module items).
/// We exit once we hit `term` /// We exit once we hit `term` which can be either
/// - EOF (for files)
/// - `}` for mod items
pub fn parse_mod( pub fn parse_mod(
&mut self, &mut self,
term: &TokenKind, term: &TokenKind,