aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/math/nextafter.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/math/nextafter.go')
-rw-r--r--libgo/go/math/nextafter.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/libgo/go/math/nextafter.go b/libgo/go/math/nextafter.go
index 8611434..e7723ba 100644
--- a/libgo/go/math/nextafter.go
+++ b/libgo/go/math/nextafter.go
@@ -8,8 +8,8 @@ package math
// If x == y, then x is returned.
//
// Special cases are:
-// Nextafter(NaN, y) = NaN
-// Nextafter(x, NaN) = NaN
+// Nextafter(NaN, y) = NaN
+// Nextafter(x, NaN) = NaN
func Nextafter(x, y float64) (r float64) {
// TODO(rsc): Remove manual inlining of IsNaN
// when compiler does it for us
@@ -25,5 +25,5 @@ func Nextafter(x, y float64) (r float64) {
default:
r = Float64frombits(Float64bits(x) - 1)
}
- return r
+ return
}