diff options
| author | Robert Griesemer <gri@golang.org> | 2009-11-09 12:07:39 -0800 |
|---|---|---|
| committer | Robert Griesemer <gri@golang.org> | 2009-11-09 12:07:39 -0800 |
| commit | e940edc7a026293153ba09ece40e8092a2fc2463 (patch) | |
| tree | c94a425c84b7a48f91a5d76a222effad70c9a88c /src/pkg/math/sqrt.go | |
| parent | e067f862f1774ab89a2096a88571a94e3b9cd353 (diff) | |
| download | golang-e940edc7a026293153ba09ece40e8092a2fc2463.tar.gz | |
remove semis after statements in one-statement statement lists
R=rsc, r
http://go/go-review/1025029
Diffstat (limited to 'src/pkg/math/sqrt.go')
| -rw-r--r-- | src/pkg/math/sqrt.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pkg/math/sqrt.go b/src/pkg/math/sqrt.go index b7fd4ee60..7a5b69a42 100644 --- a/src/pkg/math/sqrt.go +++ b/src/pkg/math/sqrt.go @@ -20,12 +20,12 @@ package math // Sqrt(x < 0) = NaN func Sqrt(x float64) float64 { if IsInf(x, 1) { - return x; + return x } if x <= 0 { if x < 0 { - return NaN(); + return NaN() } return 0; } @@ -59,7 +59,7 @@ func Sqrt(x float64) float64 { } for i := 0; i <= 4; i++ { - temp = 0.5*(temp + x/temp); + temp = 0.5*(temp + x/temp) } return temp; } |
