We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
do_count_chars
1 parent ebbccaf commit 41f8214Copy full SHA for 41f8214
library/core/src/str/count.rs
@@ -40,7 +40,7 @@ fn do_count_chars(s: &str) -> usize {
40
//
41
// - Less than or equal to 255, otherwise we'll overflow bytes in `counts`.
42
// - A multiple of `UNROLL_INNER`, otherwise our `break` inside the
43
- // `body.chunks(CHUNK_SIZE)` loop.
+ // `body.chunks(CHUNK_SIZE)` loop is incorrect.
44
45
// For performance, `CHUNK_SIZE` should be:
46
// - Relatively cheap to `/` against (so some simple sum of powers of two).
0 commit comments