aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/xml
diff options
context:
space:
mode:
authorDidier Spezia <didier.06@gmail.com>2015-08-23 13:00:01 +0000
committerIan Lance Taylor <iant@golang.org>2015-09-11 14:05:40 +0000
commitf4f0344fe26cca96cc6063459b48e7af61ae483b (patch)
treeaf7566ca6115c5e9141443525800ade9d59df43a /src/encoding/xml
parent41713b4d2b116edcc388dd9b12c15fd67db0efea (diff)
downloadgo-f4f0344fe26cca96cc6063459b48e7af61ae483b.tar.xz
encoding/base64,xml: map/slice literals janitoring
Simplify slice/map literal expressions. Caught with gofmt -d -s, fixed with gofmt -w -s Change-Id: I639cfb02b1f57dea4087863df3995889c9371529 Reviewed-on: https://go-review.googlesource.com/13837 Reviewed-by: Andrew Gerrand <adg@golang.org>
Diffstat (limited to 'src/encoding/xml')
-rw-r--r--src/encoding/xml/marshal_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/encoding/xml/marshal_test.go b/src/encoding/xml/marshal_test.go
index 66675d7abc..330fbee1af 100644
--- a/src/encoding/xml/marshal_test.go
+++ b/src/encoding/xml/marshal_test.go
@@ -1695,7 +1695,7 @@ func TestRace9796(t *testing.T) {
for i := 0; i < 2; i++ {
wg.Add(1)
go func() {
- Marshal(B{[]A{A{}}})
+ Marshal(B{[]A{{}}})
wg.Done()
}()
}