]> git.lizzy.rs Git - rust.git/commit
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)
commit2bba7233ebeec0db48a27977d36ca7aeccd0fc36
tree3a29554f27b831d8df815edc867843c643881870
parent88028693b842c7f6197d8d7dbc79e5019aa6f641
parent79f52cf9ba20c36860bee8f775498a0880189ac1
auto merge of #12331 : bjz/rust/count-ones, r=alexcrichton

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`.