Commit 3e3da546 authored by Francesc Campoy Flores's avatar Francesc Campoy Flores

math/bits: fix example for OnesCount64

Erroneously called OnesCount instead of OnesCount64

Change-Id: Ie877e43f213253e45d31f64931c4a15915849586
Reviewed-on: https://go-review.googlesource.com/53410Reviewed-by: default avatarChris Broadfoot <cbro@golang.org>
parent 9b1e7cf2
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment