]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #81409 - gilescope:chars_count, r=joshtriplett
authorYuki Okushi <huyuumi.dev@gmail.com>
Sat, 30 Jan 2021 04:36:48 +0000 (13:36 +0900)
committerGitHub <noreply@github.com>
Sat, 30 Jan 2021 04:36:48 +0000 (13:36 +0900)
Slight simplification of chars().count()

Slight simplification: No need to call len(), we can just count the number of non continuation bytes.

I can't see any reason not to do this, can you?


Trivial merge