Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SyMind committed Dec 22, 2024
1 parent 30500f3 commit c1e4d22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/with_indices.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ where
if char_index == end_char_index {
end_byte_index = Some(byte_index + last_byte_index);
*self.last_char_index_to_byte_index.borrow_mut() =
(end_char_index, byte_index);
(end_char_index, byte_index + last_byte_index);
break;
}
char_index += 1;
Expand Down

0 comments on commit c1e4d22

Please sign in to comment.