Skip to content

Commit

Permalink
Fix logic bug for raw strings
Browse files Browse the repository at this point in the history
  • Loading branch information
pczarn committed Nov 24, 2023
1 parent 236d71c commit 825d5a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/noirc_frontend/src/lexer/lexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ impl<'a> Lexer<'a> {
// too many hashes (unlikely in practice)
// also, Rust disallows 256+ hashes as well
return Err(LexerErrorKind::UnexpectedCharacter {
span: Span::single_char(self.position + 255),
span: Span::single_char(start + 255),
found: Some('#'),
expected: "\"".to_owned(),
});
Expand Down

0 comments on commit 825d5a9

Please sign in to comment.