]> Cypherpunks repositories - gostls13.git/commit
encoding/json: add example for Indent, clarify the docs.
authorStephen McQuay <stephen@mcquay.me>
Thu, 8 May 2014 06:52:36 +0000 (16:52 +1000)
committerAndrew Gerrand <adg@golang.org>
Thu, 8 May 2014 06:52:36 +0000 (16:52 +1000)
commit1c2cc125fb2baad78167ee543f1d96aea9135734
tree278e3b6f63098fee71cf1849ad96b6d3d344fbef
parent5139293986cf202efe31d995e8dfb471b6f2038e
encoding/json: add example for Indent, clarify the docs.

There was confusion in the behavior of json.Indent; This change
attempts to clarify the behavior by providing a bit more verbiage
to the documentation as well as provide an example function.

Fixes #7821.

LGTM=robert.hencke, adg
R=golang-codereviews, minux.ma, bradfitz, aram, robert.hencke, r, adg
CC=golang-codereviews
https://golang.org/cl/97840044
src/pkg/encoding/json/example_test.go
src/pkg/encoding/json/indent.go