aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIvan Ukhov <ivan.ukhov@gmail.com>2015-02-17 07:53:44 +0100
committerDavid Crawshaw <crawshaw@golang.org>2015-02-17 14:29:18 +0000
commit277eddb8f236b76c1028110ca89c9fc596f3074f (patch)
tree4b8a481a77d6da790ae8528d650e2af7cf18a004 /src
parent04774336b15c2eeda76080d60c57844a22b77c99 (diff)
downloadgo-277eddb8f236b76c1028110ca89c9fc596f3074f.tar.xz
math: change Nextafter64 to Nextafter in the description of Nextafter
Change-Id: I3419d6247fbff36aa1ed5451bb3cfb7502c3d07e Reviewed-on: https://go-review.googlesource.com/5030 Reviewed-by: David Crawshaw <crawshaw@golang.org>
Diffstat (limited to 'src')
-rw-r--r--src/math/nextafter.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/math/nextafter.go b/src/math/nextafter.go
index 4314a05714..9088e4d248 100644
--- a/src/math/nextafter.go
+++ b/src/math/nextafter.go
@@ -29,9 +29,9 @@ func Nextafter32(x, y float32) (r float32) {
// Nextafter returns the next representable float64 value after x towards y.
//
// Special cases are:
-// Nextafter64(x, x) = x
-// Nextafter64(NaN, y) = NaN
-// Nextafter64(x, NaN) = NaN
+// Nextafter(x, x) = x
+// Nextafter(NaN, y) = NaN
+// Nextafter(x, NaN) = NaN
func Nextafter(x, y float64) (r float64) {
switch {
case IsNaN(x) || IsNaN(y): // special case