Skip to content

Commit f942c3c

Browse files
author
Hanzhen Liang
committed
Return EOF_CHAR constant instead of magic char.
1 parent bf5f306 commit f942c3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_lexer/src/cursor.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ impl<'a> Cursor<'a> {
3333

3434
#[cfg(not(debug_assertions))]
3535
{
36-
'\0'
36+
EOF_CHAR
3737
}
3838
}
3939

0 commit comments

Comments
 (0)