Skip to content

Commit 41f8214

Browse files
committed
Fix comment grammar for do_count_chars
1 parent ebbccaf commit 41f8214

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/str/count.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ fn do_count_chars(s: &str) -> usize {
4040
//
4141
// - Less than or equal to 255, otherwise we'll overflow bytes in `counts`.
4242
// - A multiple of `UNROLL_INNER`, otherwise our `break` inside the
43-
// `body.chunks(CHUNK_SIZE)` loop.
43+
// `body.chunks(CHUNK_SIZE)` loop is incorrect.
4444
//
4545
// For performance, `CHUNK_SIZE` should be:
4646
// - Relatively cheap to `/` against (so some simple sum of powers of two).

0 commit comments

Comments
 (0)