aboutsummaryrefslogtreecommitdiff
path: root/src/math
diff options
context:
space:
mode:
authorcui fliter <imcusg@gmail.com>2022-11-03 15:34:35 +0800
committerGopher Robot <gobot@golang.org>2022-11-07 19:46:45 +0000
commit601ad2e4570896d07df8ace7d2ab9100a57d301c (patch)
treebb2b08045ea216e64a2553ca56ce64f1a6c38f23 /src/math
parent81ed1354e8fef60cac1f7043d723d9d38c9ce174 (diff)
downloadgo-601ad2e4570896d07df8ace7d2ab9100a57d301c.tar.xz
math: fix function name in comment
Change-Id: Iabf955cdb161d02cb4a3e06f466b331e1b6eb2c2 Signed-off-by: cui fliter <imcusg@gmail.com> Reviewed-on: https://go-review.googlesource.com/c/go/+/447456 Run-TryBot: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Robert Griesemer <gri@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/math')
-rw-r--r--src/math/logb.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/math/logb.go b/src/math/logb.go
index 04ba3e968e..1a46464127 100644
--- a/src/math/logb.go
+++ b/src/math/logb.go
@@ -44,7 +44,7 @@ func Ilogb(x float64) int {
return ilogb(x)
}
-// logb returns the binary exponent of x. It assumes x is finite and
+// ilogb returns the binary exponent of x. It assumes x is finite and
// non-zero.
func ilogb(x float64) int {
x, exp := normalize(x)