1
0
mirror of https://github.com/golang/go synced 2024-09-28 20: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:
Francesc Campoy Flores 2017-08-04 17:03:33 -07:00
parent 9b1e7cf2ac
commit 3e3da54633

View File

@ -71,7 +71,7 @@ func ExampleOnesCount32() {
func ExampleOnesCount64() {
fmt.Printf("%b\n", 14)
fmt.Println(bits.OnesCount(14))
fmt.Println(bits.OnesCount64(14))
// Output:
// 1110
// 3