Skip to content

Commit 3e3da54

Browse files
committed
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 <[email protected]>
1 parent 9b1e7cf commit 3e3da54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/math/bits/example_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func ExampleOnesCount32() {
7171

7272
func ExampleOnesCount64() {
7373
fmt.Printf("%b\n", 14)
74-
fmt.Println(bits.OnesCount(14))
74+
fmt.Println(bits.OnesCount64(14))
7575
// Output:
7676
// 1110
7777
// 3

0 commit comments

Comments
 (0)