aboutsummaryrefslogtreecommitdiff
path: root/test/func.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2011-01-19 23:09:00 -0500
committerRuss Cox <rsc@golang.org>2011-01-19 23:09:00 -0500
commitf2b5a07453277de6bc500dc283799441cc375239 (patch)
tree2c5fdc55fd72274b49b5eff68736ff3075389b3d /test/func.go
parent0849944694543a3446da4b1fa0c3d314781ced14 (diff)
downloadgo-f2b5a07453277de6bc500dc283799441cc375239.tar.gz
go-f2b5a07453277de6bc500dc283799441cc375239.zip
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 https://golang.org/cl/3991043
Diffstat (limited to 'test/func.go')
-rw-r--r--test/func.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/func.go b/test/func.go
index 0c1a07979d..e8ed928bcd 100644
--- a/test/func.go
+++ b/test/func.go
@@ -21,10 +21,10 @@ func f2(a int) {
}
func f3(a, b int) int {
- return a+b
+ return a + b
}
-func f4(a, b int, c float) int {
+func f4(a, b int, c float32) int {
return (a+b)/2 + int(c)
}
@@ -36,12 +36,12 @@ func f6(a int) (r int) {
return 6
}
-func f7(a int) (x int, y float) {
+func f7(a int) (x int, y float32) {
return 7, 7.0
}
-func f8(a int) (x int, y float) {
+func f8(a int) (x int, y float32) {
return 8, 8.0
}
@@ -49,12 +49,12 @@ type T struct {
x, y int
}
-func (t *T) m10(a int, b float) int {
- return (t.x+a) * (t.y+int(b))
+func (t *T) m10(a int, b float32) int {
+ return (t.x + a) * (t.y + int(b))
}
-func f9(a int) (i int, f float) {
+func f9(a int) (i int, f float32) {
i = 9
f = 9.0
return