From: Francesc Campoy Flores Date: Sat, 5 Aug 2017 00:03:33 +0000 (-0700) Subject: math/bits: fix example for OnesCount64 X-Git-Tag: go1.9rc2~1^2~3 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3e3da5463302ff6f73a78e60fa7027d554095520;p=gostls13.git 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 --- 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