aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/xml/xml_test.go
diff options
context:
space:
mode:
authorcui fliter <imcusg@gmail.com>2024-03-22 23:31:44 +0800
committerGopher Robot <gobot@golang.org>2024-03-26 19:58:28 +0000
commit1e12eab8705d1d8d7472be9147a39caa1c8380db (patch)
treecde9e173c3e757516f56f9e66c41065513738832 /src/encoding/xml/xml_test.go
parent4217877670e94b88ddd1ee1041b31d5825b08e2a (diff)
downloadgo-1e12eab8705d1d8d7472be9147a39caa1c8380db.tar.xz
all: fix a large number of comments
Partial typo corrections, following https://go.dev/wiki/Spelling Change-Id: I2357906ff2ea04305c6357418e4e9556e20375d1 Reviewed-on: https://go-review.googlesource.com/c/go/+/573776 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Than McIntosh <thanm@google.com> Run-TryBot: shuang cui <imcusg@gmail.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/encoding/xml/xml_test.go')
-rw-r--r--src/encoding/xml/xml_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/encoding/xml/xml_test.go b/src/encoding/xml/xml_test.go
index a6763fd547..b2a06a7639 100644
--- a/src/encoding/xml/xml_test.go
+++ b/src/encoding/xml/xml_test.go
@@ -1091,10 +1091,10 @@ func TestIssue7113(t *testing.T) {
}
if a.XMLName.Space != structSpace {
- t.Errorf("overidding with empty namespace: unmarshalling, got %s, want %s\n", a.XMLName.Space, structSpace)
+ t.Errorf("overidding with empty namespace: unmarshaling, got %s, want %s\n", a.XMLName.Space, structSpace)
}
if len(a.C.XMLName.Space) != 0 {
- t.Fatalf("overidding with empty namespace: unmarshalling, got %s, want empty\n", a.C.XMLName.Space)
+ t.Fatalf("overidding with empty namespace: unmarshaling, got %s, want empty\n", a.C.XMLName.Space)
}
var b []byte
@@ -1106,7 +1106,7 @@ func TestIssue7113(t *testing.T) {
t.Errorf("overidding with empty namespace: marshaling, got %s in C tag which should be empty\n", a.C.XMLName.Space)
}
if string(b) != xmlTest {
- t.Fatalf("overidding with empty namespace: marshalling, got %s, want %s\n", b, xmlTest)
+ t.Fatalf("overidding with empty namespace: marshaling, got %s, want %s\n", b, xmlTest)
}
var c A
err = Unmarshal(b, &c)