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 | 19586282282f5f59c80162c711cd31b94396a87e (patch) | |
tree | 292a7d26be6031010a9b4d9b8e30d160845f9411 /test/float_lit.go | |
parent | 4bac20d23b62277fab6e422555c4dda60b648d10 (diff) | |
download | go-19586282282f5f59c80162c711cd31b94396a87e.tar.gz |
making some more non-gofmt'ed files save for new semicolon rule
R=rsc, r
http://codereview.appspot.com/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 be4460e43..58bd4dac0 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"); } |