Skip to content

Commit 084d1ef

Browse files
committed
Merge pull request #294 from dminkovsky/edit-comment
Fix comment
2 parents fd8598d + 5896562 commit 084d1ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/language/parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,7 @@ function skip(parser: Parser, kind: number): boolean {
968968

969969
/**
970970
* If the next token is of the given kind, return that token after advancing
971-
* the parser. Otherwise, do not change the parser state and return false.
971+
* the parser. Otherwise, do not change the parser state and throw an error.
972972
*/
973973
function expect(parser: Parser, kind: number): Token {
974974
const token = parser.token;

0 commit comments

Comments
 (0)