We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20d1ad9 commit dfdea3fCopy full SHA for dfdea3f
src/libsyntax/parse/lexer/mod.rs
@@ -1131,8 +1131,8 @@ impl<'a> StringReader<'a> {
1131
1132
fn read_one_line_comment(&mut self) -> String {
1133
let val = self.read_to_eol();
1134
- assert!((val.as_bytes()[0] == '/' as u8 && val.as_bytes()[1] == '/' as u8)
1135
- || (val.as_bytes()[0] == '#' as u8 && val.as_bytes()[1] == '!' as u8));
+ assert!((val.as_bytes()[0] == b'/' && val.as_bytes()[1] == b'/')
+ || (val.as_bytes()[0] == b'#' && val.as_bytes()[1] == b'!'));
1136
return val;
1137
}
1138
0 commit comments