Skip to content

Commit

Permalink
Delete irrelevant comment copypaste.
Browse files Browse the repository at this point in the history
  • Loading branch information
hsivonen committed Oct 4, 2019
1 parent 45a049a commit 9778376
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/utf_8.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@ pub fn utf8_valid_up_to(src: &[u8]) -> usize {
// At this point, `byte` is not included in `read`, because we
// don't yet know that a) the UTF-8 sequence is valid and b) that there
// is output space if it is an astral sequence.
// We know, thanks to `ascii_to_basic_latin` that there is output
// space for at least one UTF-16 code unit, so no need to check
// for output space in the BMP cases.
// Inspecting the lead byte directly is faster than what the
// std lib does!
if unsafe { likely(in_inclusive_range8(byte, 0xC2, 0xDF)) } {
Expand Down

0 comments on commit 9778376

Please sign in to comment.