summaryrefslogtreecommitdiff
path: root/src/pkg/math/sin.go
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2009-11-09 12:07:39 -0800
committerRobert Griesemer <gri@golang.org>2009-11-09 12:07:39 -0800
commite940edc7a026293153ba09ece40e8092a2fc2463 (patch)
treec94a425c84b7a48f91a5d76a222effad70c9a88c /src/pkg/math/sin.go
parente067f862f1774ab89a2096a88571a94e3b9cd353 (diff)
downloadgolang-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/sin.go')
-rw-r--r--src/pkg/math/sin.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pkg/math/sin.go b/src/pkg/math/sin.go
index 740d6778b..2c6f0079e 100644
--- a/src/pkg/math/sin.go
+++ b/src/pkg/math/sin.go
@@ -37,10 +37,10 @@ func sinus(x float64, quad int) float64 {
}
if quad&1 != 0 {
- y = 1-y;
+ y = 1-y
}
if quad > 1 {
- y = -y;
+ y = -y
}
yy := y*y;
@@ -52,7 +52,7 @@ func sinus(x float64, quad int) float64 {
// Cos returns the cosine of x.
func Cos(x float64) float64 {
if x < 0 {
- x = -x;
+ x = -x
}
return sinus(x, 1);
}