Skip to content

Commit

Permalink
Fix typo in infinite (#7614)
Browse files Browse the repository at this point in the history
  • Loading branch information
chammika-become authored Sep 23, 2023
1 parent 1a4f2a9 commit e41b08f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/ruff_python_parser/src/lexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1656,7 +1656,7 @@ def f(arg=%timeit a = b):
// This test case is to just make sure that the lexer doesn't go into
// infinite loop on invalid input.
#[test]
fn test_infite_loop() {
fn test_infinite_loop() {
let source = "[1";
let _ = lex(source, Mode::Module).collect::<Vec<_>>();
}
Expand Down

0 comments on commit e41b08f

Please sign in to comment.