aboutsummaryrefslogtreecommitdiff
path: root/src/math/nextafter.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/nextafter.go')
-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