Skip to content

Commit

Permalink
Update crates/ruff_python_parser/src/string.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
  • Loading branch information
sno2 and dhruvmanila authored Oct 27, 2023
1 parent c577879 commit 28b823f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/ruff_python_parser/src/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ impl<'a> StringParser<'a> {
/// Returns the next byte in the string, if there is one.
///
/// # Panics
/// - When the next byte is a part of a multi-byte character.
///
/// When the next byte is a part of a multi-byte character.
#[inline]
fn next_byte(&mut self) -> Option<u8> {
self.rest.as_bytes().first().map(|&byte| {
Expand Down

0 comments on commit 28b823f

Please sign in to comment.