diff options
author | Russ Cox <rsc@golang.org> | 2011-01-19 23:09:00 -0500 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2011-01-19 23:09:00 -0500 |
commit | ed3592f95664c555d787d87b28ff783b846257e6 (patch) | |
tree | 9bfdc7720f6c491c1c293a4bd367abec2a1221f4 /test/iota.go | |
parent | 8d36be6d5ae904467a0be5e7dc3965581a3dbf73 (diff) | |
download | go-ed3592f95664c555d787d87b28ff783b846257e6.tar.gz |
delete float, complex - code changes
also:
cmplx -> complex
float64(1.0) -> 1.0
float64(1) -> 1.0
R=gri, r, gri1, r2
CC=golang-dev
http://codereview.appspot.com/3991043
Diffstat (limited to 'test/iota.go')
-rw-r--r-- | test/iota.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/iota.go b/test/iota.go index 20b77c6cc..c40ca1f38 100644 --- a/test/iota.go +++ b/test/iota.go @@ -17,8 +17,8 @@ const ( x int = iota y = iota z = 1 << iota - f float = 2 * iota - g float = 4.5 * float(iota) + f float32 = 2 * iota + g float32 = 4.5 * float32(iota) ) const ( @@ -57,7 +57,7 @@ const ( ) const ( - p = float(iota) + p = float32(iota) q r ) @@ -68,9 +68,9 @@ const ( ) const ( - abit, amask = 1 << iota, 1 << iota - 1 - bbit, bmask = 1 << iota, 1 << iota - 1 - cbit, cmask = 1 << iota, 1 << iota - 1 + abit, amask = 1 << iota, 1<<iota - 1 + bbit, bmask = 1 << iota, 1<<iota - 1 + cbit, cmask = 1 << iota, 1<<iota - 1 ) func main() { |