Open truchi opened 5 months ago
Hello,
In prev_boundary we have this check (for the following unwrap not to panic):
prev_boundary
if self.offset == chunk_start { return Err(GraphemeIncomplete::PrevChunk); }
I suggest this in next_boundary() (for the same reason):
next_boundary()
if self.offset == chunk_start + chunk.len() { return Err(GraphemeIncomplete::NextChunk); }
Thank you!
Hello,
In
prev_boundary
we have this check (for the following unwrap not to panic):I suggest this in
next_boundary()
(for the same reason):Thank you!