Skip to content

Commit 5b4eb33

Browse files
committed
Add a TODO for ceil_char_boundary
1 parent 5142c8d commit 5b4eb33

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/str.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ fn find_char_midpoint(chars: &str) -> usize {
3232
// We want to split near the midpoint, but we need to find an actual
3333
// character boundary. So we look at the raw bytes, first scanning
3434
// forward from the midpoint for a boundary, then trying backward.
35+
// TODO (MSRV 1.91): use `str::ceil_char_boundary`, else `floor_...`.
3536
let (left, right) = chars.as_bytes().split_at(mid);
3637
match right.iter().copied().position(is_char_boundary) {
3738
Some(i) => mid + i,

0 commit comments

Comments
 (0)