Fix typo in infinite (#7614)

This commit is contained in:
Chammika Mannakkara 2023-09-23 20:19:36 +09:00 committed by GitHub
parent 1a4f2a9baf
commit e41b08f1d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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<_>>();
}