From e41b08f1d0c65a16308ff5b0b3ca116f5ccb8db2 Mon Sep 17 00:00:00 2001 From: Chammika Mannakkara Date: Sat, 23 Sep 2023 20:19:36 +0900 Subject: [PATCH] Fix typo in infinite (#7614) --- crates/ruff_python_parser/src/lexer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ruff_python_parser/src/lexer.rs b/crates/ruff_python_parser/src/lexer.rs index fca0ba5b90fbe..9600e0190f9d4 100644 --- a/crates/ruff_python_parser/src/lexer.rs +++ b/crates/ruff_python_parser/src/lexer.rs @@ -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::>(); }