Commit 143f3fd0 authored by Andrew Gerrand's avatar Andrew Gerrand

encoding/json: spell "marshaling" and "unmarshaling" consistently

Fixes #12431

Change-Id: I67c42bf2cd9285f471387248fd9c22a16b158349
Reviewed-on: https://go-review.googlesource.com/14150Reviewed-by: 's avatarDmitri Shuralyov <shurcool@gmail.com>
Reviewed-by: 's avatarRob Pike <r@golang.org>
parent 7b7f8553
...@@ -57,7 +57,7 @@ import ( ...@@ -57,7 +57,7 @@ import (
// //
// If a JSON value is not appropriate for a given target type, // If a JSON value is not appropriate for a given target type,
// or if a JSON number overflows the target type, Unmarshal // or if a JSON number overflows the target type, Unmarshal
// skips that field and completes the unmarshalling as best it can. // skips that field and completes the unmarshaling as best it can.
// If no more serious errors are encountered, Unmarshal returns // If no more serious errors are encountered, Unmarshal returns
// an UnmarshalTypeError describing the earliest such error. // an UnmarshalTypeError describing the earliest such error.
// //
......
...@@ -1206,12 +1206,12 @@ func TestStringKind(t *testing.T) { ...@@ -1206,12 +1206,12 @@ func TestStringKind(t *testing.T) {
data, err := Marshal(m1) data, err := Marshal(m1)
if err != nil { if err != nil {
t.Errorf("Unexpected error marshalling: %v", err) t.Errorf("Unexpected error marshaling: %v", err)
} }
err = Unmarshal(data, &m2) err = Unmarshal(data, &m2)
if err != nil { if err != nil {
t.Errorf("Unexpected error unmarshalling: %v", err) t.Errorf("Unexpected error unmarshaling: %v", err)
} }
if !reflect.DeepEqual(m1, m2) { if !reflect.DeepEqual(m1, m2) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment