]> Cypherpunks repositories - gostls13.git/commitdiff
text/template: fix type of ComplexZero in test
authorRob Pike <r@golang.org>
Wed, 31 Jul 2013 03:04:57 +0000 (13:04 +1000)
committerRob Pike <r@golang.org>
Wed, 31 Jul 2013 03:04:57 +0000 (13:04 +1000)
Was stupidly float64; should be complex128.
The tests still pass.

Fixes #5649.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/12107044

src/pkg/text/template/exec_test.go

index 0ab20acc934a4a3dbc1f3ceddf1230dc2e32b37c..b89856593132f3be7fd4615d468beb68737d0135 100644 (file)
@@ -24,7 +24,7 @@ type T struct {
        U16         uint16
        X           string
        FloatZero   float64
-       ComplexZero float64
+       ComplexZero complex128
        // Nested structs.
        U *U
        // Struct with String method.