Skip to content

Commit

Permalink
Fix comment grammar for do_count_chars
Browse files Browse the repository at this point in the history
  • Loading branch information
thomcc committed Feb 5, 2022
1 parent ebbccaf commit 41f8214
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/str/count.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ fn do_count_chars(s: &str) -> usize {
//
// - Less than or equal to 255, otherwise we'll overflow bytes in `counts`.
// - A multiple of `UNROLL_INNER`, otherwise our `break` inside the
// `body.chunks(CHUNK_SIZE)` loop.
// `body.chunks(CHUNK_SIZE)` loop is incorrect.
//
// For performance, `CHUNK_SIZE` should be:
// - Relatively cheap to `/` against (so some simple sum of powers of two).
Expand Down

0 comments on commit 41f8214

Please sign in to comment.