diff --git a/src/encoding/json/example_test.go b/src/encoding/json/example_test.go index 326bdc9540..555eff93c0 100644 --- a/src/encoding/json/example_test.go +++ b/src/encoding/json/example_test.go @@ -143,10 +143,9 @@ func ExampleDecoder_Decode_stream() { } fmt.Printf("%T: %v\n", t, t) - var m Message // while the array contains values for dec.More() { - + var m Message // decode an array value (Message) err := dec.Decode(&m) if err != nil {