aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancesc Campoy Flores <campoy@golang.org>2017-08-04 17:03:33 -0700
committerFrancesc Campoy Flores <campoy@golang.org>2017-08-05 00:20:37 +0000
commit3e3da5463302ff6f73a78e60fa7027d554095520 (patch)
tree19afcc388dce955ce5bb5e0abe36e42ced519c52
parent9b1e7cf2ac90d2c4637cae480957e0f0152c3622 (diff)
downloadgo-3e3da5463302ff6f73a78e60fa7027d554095520.tar.gz
go-3e3da5463302ff6f73a78e60fa7027d554095520.zip
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>
-rw-r--r--src/math/bits/example_test.go2
1 files changed, 1 insertions, 1 deletions
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