mirror of
https://github.com/golang/go
synced 2024-09-28 22:14:28 -06:00
math/bits: fix example for OnesCount64
Erroneously called OnesCount instead of OnesCount64 Change-Id: Ie877e43f213253e45d31f64931c4a15915849586 Reviewed-on: https://go-review.googlesource.com/53410 Reviewed-by: Chris Broadfoot <cbro@golang.org>
This commit is contained in:
parent
9b1e7cf2ac
commit
3e3da54633
@ -71,7 +71,7 @@ func ExampleOnesCount32() {
|
|||||||
|
|
||||||
func ExampleOnesCount64() {
|
func ExampleOnesCount64() {
|
||||||
fmt.Printf("%b\n", 14)
|
fmt.Printf("%b\n", 14)
|
||||||
fmt.Println(bits.OnesCount(14))
|
fmt.Println(bits.OnesCount64(14))
|
||||||
// Output:
|
// Output:
|
||||||
// 1110
|
// 1110
|
||||||
// 3
|
// 3
|
||||||
|
Loading…
Reference in New Issue
Block a user