diff --git a/src/math/bits/example_test.go b/src/math/bits/example_test.go index 9836245cfb..a43d1f365f 100644 --- a/src/math/bits/example_test.go +++ b/src/math/bits/example_test.go @@ -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