Skip to content

Commit

Permalink
Return EOF_CHAR constant instead of magic char.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanzhen Liang committed Jan 7, 2021
1 parent bf5f306 commit f942c3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_lexer/src/cursor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl<'a> Cursor<'a> {

#[cfg(not(debug_assertions))]
{
'\0'
EOF_CHAR
}
}

Expand Down

0 comments on commit f942c3c

Please sign in to comment.