diff options
author | Russ Cox <rsc@golang.org> | 2009-10-07 11:55:06 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-10-07 11:55:06 -0700 |
commit | 2b77e59eaed6d039951b5ef7ad1f3db421962dc2 (patch) | |
tree | 10feec844f56ec9dce304804c581d9c5209e74c1 /src/pkg/reflect/tostring_test.go | |
parent | 5843e5da3dca981d5b2522a3be91bd1426c71d26 (diff) | |
download | golang-2b77e59eaed6d039951b5ef7ad1f3db421962dc2.tar.gz |
apply gofmt to rand reflect regexp rpc runtime sort strconv strings sync syscall testing time unicode unsafe utf8
R=gri
DELTA=1409 (79 added, 24 deleted, 1306 changed)
OCL=35415
CL=35437
Diffstat (limited to 'src/pkg/reflect/tostring_test.go')
-rw-r--r-- | src/pkg/reflect/tostring_test.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/pkg/reflect/tostring_test.go b/src/pkg/reflect/tostring_test.go index eeac5a028..334f8420c 100644 --- a/src/pkg/reflect/tostring_test.go +++ b/src/pkg/reflect/tostring_test.go @@ -9,8 +9,8 @@ package reflect_test import ( - . "reflect"; - "strconv"; + . "reflect"; + "strconv"; ) // valueToString returns a textual representation of the reflection value val. @@ -56,9 +56,9 @@ func valueToString(val Value) string { return val.Get(); case *BoolValue: if val.Get() { - return "true" + return "true"; } else { - return "false" + return "false"; } case *PtrValue: v := val; @@ -76,7 +76,7 @@ func valueToString(val Value) string { str += "{"; for i := 0; i < v.Len(); i++ { if i > 0 { - str += ", " + str += ", "; } str += valueToString(v.Elem(i)); } @@ -99,7 +99,7 @@ func valueToString(val Value) string { str += "{"; for i, n := 0, v.NumField(); i < n; i++ { if i > 0 { - str += ", " + str += ", "; } str += valueToString(v.Field(i)); } |