diff options
author | Robert Griesemer <gri@golang.org> | 2009-12-09 19:27:08 -0800 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2009-12-09 19:27:08 -0800 |
commit | 542099d78f36f1a23eb21fbca9dc6d3723fbdd25 (patch) | |
tree | 8340124f1181fcd9d5ca7b5b53c42336c6ace5d1 /test/float_lit.go | |
parent | 5f5dcfbc155dddb3b07345682cfdd0511a317723 (diff) | |
download | go-542099d78f36f1a23eb21fbca9dc6d3723fbdd25.tar.gz go-542099d78f36f1a23eb21fbca9dc6d3723fbdd25.zip |
making some more non-gofmt'ed files save for new semicolon rule
R=rsc, r
https://golang.org/cl/171051
Diffstat (limited to 'test/float_lit.go')
-rw-r--r-- | test/float_lit.go | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/test/float_lit.go b/test/float_lit.go index be4460e43e..58bd4dac01 100644 --- a/test/float_lit.go +++ b/test/float_lit.go @@ -7,16 +7,14 @@ package main func -pow10(pow int) float64 -{ +pow10(pow int) float64 { if pow < 0 { return 1/pow10(-pow); } if pow > 0 { return pow10(pow-1)*10; } return 1; } func -close(da float64, ia, ib int64, pow int) bool -{ +close(da float64, ia, ib int64, pow int) bool { db := float64(ia) / float64(ib); db *= pow10(pow); @@ -39,8 +37,7 @@ close(da float64, ia, ib int64, pow int) bool } func -main() -{ +main() { if !close(0., 0, 1, 0) { print("0. is ", 0., "\n"); } if !close(+10., 10, 1, 0) { print("+10. is ", +10., "\n"); } |