]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #12331 : bjz/rust/count-ones, r=alexcrichton
authorbors <bors@rust-lang.org>
Mon, 17 Feb 2014 16:06:49 +0000 (08:06 -0800)
committerbors <bors@rust-lang.org>
Mon, 17 Feb 2014 16:06:49 +0000 (08:06 -0800)
This is inspired by the [function naming in the Julia standard library](http://docs.julialang.org/en/release-0.2/stdlib/base/#Base.count_ones). It seems like a more self-explanatory name, and is more consistent with the accompanying methods, `leading_zeros` and `trailing_zeros`.


Trivial merge