]> Cypherpunks repositories - gostls13.git/commitdiff
encoding/json: spell "marshaling" and "unmarshaling" consistently
authorAndrew Gerrand <adg@golang.org>
Tue, 1 Sep 2015 07:51:39 +0000 (17:51 +1000)
committerAndrew Gerrand <adg@golang.org>
Wed, 23 Sep 2015 00:48:35 +0000 (00:48 +0000)
Fixes #12431

Change-Id: I67c42bf2cd9285f471387248fd9c22a16b158349
Reviewed-on: https://go-review.googlesource.com/14150
Reviewed-by: Dmitri Shuralyov <shurcool@gmail.com>
Reviewed-by: Rob Pike <r@golang.org>
src/encoding/json/decode.go
src/encoding/json/decode_test.go

index 0f5bb4d574be41d980d41c5bffc4298efbf963fd..e7e8d0b9979f41766f8aedabeb77cddc8ec916d2 100644 (file)
@@ -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.
 //
index 8c3b92b823ccda042392b9d9ffaca052eea5553e..e9e00e5fcaf93148af07814debe8844085331da0 100644 (file)
@@ -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) {