Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/parser/src/parser.rs')
| -rw-r--r-- | crates/parser/src/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/parser/src/parser.rs b/crates/parser/src/parser.rs index 48d8350e07..33d645b048 100644 --- a/crates/parser/src/parser.rs +++ b/crates/parser/src/parser.rs @@ -162,7 +162,7 @@ impl<'t> Parser<'t> { Marker::new(pos) } - /// Consume the next token if `kind` matches. + /// Consume the next token. Panics if the parser isn't currently at `kind`. pub(crate) fn bump(&mut self, kind: SyntaxKind) { assert!(self.eat(kind)); } |