]> Cypherpunks repositories - gostls13.git/commit
encoding/json: fix indentation in Decode stream example
authorIccha Sethi <icchasethi@gmail.com>
Sat, 15 Jul 2017 18:28:12 +0000 (13:28 -0500)
committerDmitri Shuralyov <shurcool@gmail.com>
Sat, 15 Jul 2017 21:35:22 +0000 (21:35 +0000)
commitba6cd156f30ad9d5b42663cdd93e58f0b91b9811
treeaa7d457fe8231e7bc5729fed67e21d9db867a05f
parentaad7f7bfb7b088fdcdb51c9e384a5d9a2ea37838
encoding/json: fix indentation in Decode stream example

The existing example for Decoder.Decode (Stream) had excessive
indentation in the godoc interface for the const jsonStream,
making it hard to read. This fixes the indentation in the
example_test.go to improve the readability in godoc.

Helps #21026.

Change-Id: I16f56b82182da1dcc73cca44e535a7f5695e975d
Reviewed-on: https://go-review.googlesource.com/48910
Reviewed-by: Dmitri Shuralyov <shurcool@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/encoding/json/example_test.go