aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/fastlog2.go
diff options
context:
space:
mode:
authorshawnps <shawnpsmith@gmail.com>2017-01-07 08:23:11 -0800
committerIan Lance Taylor <iant@golang.org>2017-01-07 16:53:25 +0000
commit067bab00a80e028f1d7ce553b27aba2aa3e9675f (patch)
treeb81638335e93b794eab298a80866fa6478f349c1 /src/runtime/fastlog2.go
parent8fa2344e98aa0eb2ef5a401847a4b760e9d19418 (diff)
downloadgo-067bab00a80e028f1d7ce553b27aba2aa3e9675f.tar.gz
go-067bab00a80e028f1d7ce553b27aba2aa3e9675f.zip
all: fix misspellings
Change-Id: I429637ca91f7db4144f17621de851a548dc1ce76 Reviewed-on: https://go-review.googlesource.com/34923 Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Daniel Martí <mvdan@mvdan.cc> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/runtime/fastlog2.go')
-rw-r--r--src/runtime/fastlog2.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/fastlog2.go b/src/runtime/fastlog2.go
index b22e8259ad..5f3fb53423 100644
--- a/src/runtime/fastlog2.go
+++ b/src/runtime/fastlog2.go
@@ -8,7 +8,7 @@ import "unsafe"
// fastlog2 implements a fast approximation to the base 2 log of a
// float64. This is used to compute a geometric distribution for heap
-// sampling, without introducing dependences into package math. This
+// sampling, without introducing dependencies into package math. This
// uses a very rough approximation using the float64 exponent and the
// first 25 bits of the mantissa. The top 5 bits of the mantissa are
// used to load limits from a table of constants and the rest are used
@@ -29,5 +29,5 @@ func fastlog2(x float64) float64 {
}
// float64bits returns the IEEE 754 binary representation of f.
-// Taken from math.Float64bits to avoid dependences into package math.
+// Taken from math.Float64bits to avoid dependencies into package math.
func float64bits(f float64) uint64 { return *(*uint64)(unsafe.Pointer(&f)) }