Skip to content

Commit

Permalink
encoding/json: spell "marshaling" and "unmarshaling" consistently
Browse files Browse the repository at this point in the history
Fixes golang#12431

Change-Id: I67c42bf2cd9285f471387248fd9c22a16b158349
Reviewed-on: https://go-review.googlesource.com/14150
Reviewed-by: Dmitri Shuralyov <[email protected]>
Reviewed-by: Rob Pike <[email protected]>
  • Loading branch information
adg committed Sep 23, 2015
1 parent 7b7f855 commit 143f3fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/encoding/json/decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ import (
//
// If a JSON value is not appropriate for a given target type,
// 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
// an UnmarshalTypeError describing the earliest such error.
//
Expand Down
4 changes: 2 additions & 2 deletions src/encoding/json/decode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1206,12 +1206,12 @@ func TestStringKind(t *testing.T) {

data, err := Marshal(m1)
if err != nil {
t.Errorf("Unexpected error marshalling: %v", err)
t.Errorf("Unexpected error marshaling: %v", err)
}

err = Unmarshal(data, &m2)
if err != nil {
t.Errorf("Unexpected error unmarshalling: %v", err)
t.Errorf("Unexpected error unmarshaling: %v", err)
}

if !reflect.DeepEqual(m1, m2) {
Expand Down

0 comments on commit 143f3fd

Please sign in to comment.