remove semis after statements in one-statement statement lists
R=rsc, r
http://go/go-review/1025029
diff --git a/src/pkg/math/hypot.go b/src/pkg/math/hypot.go
index 6ba8fb7..7ff8f4b 100644
--- a/src/pkg/math/hypot.go
+++ b/src/pkg/math/hypot.go
@@ -16,18 +16,18 @@
// unnecessary overflow and underflow.
func Hypot(p, q float64) float64 {
if p < 0 {
- p = -p;
+ p = -p
}
if q < 0 {
- q = -q;
+ q = -q
}
if p < q {
- p, q = q, p;
+ p, q = q, p
}
if p == 0 {
- return 0;
+ return 0
}
pfac := p;
@@ -38,7 +38,7 @@
r = r*r;
s := r+4;
if s == 4 {
- return p*pfac;
+ return p*pfac
}
r = r/s;
p = p + 2*r*p;