Skip to content

Commit 57b87c6

Browse files
committed
Address comment
1 parent b5db394 commit 57b87c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/parser/src/lexer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1091,7 +1091,7 @@ where
10911091
} else {
10921092
let tok_start = self.get_pos();
10931093
self.next_char();
1094-
if let [Some('.'), Some('.')] = self.window[..2] {
1094+
if self.window[..2] == [Some('.'); 2] {
10951095
self.next_char();
10961096
self.next_char();
10971097
let tok_end = self.get_pos();

0 commit comments

Comments
 (0)