]> Cypherpunks repositories - gostls13.git/commit
encoding/json: rename Indent method to SetIndent
authorRuss Cox <rsc@golang.org>
Mon, 23 May 2016 16:28:56 +0000 (12:28 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 24 May 2016 15:01:29 +0000 (15:01 +0000)
commit34b17d4dc5726eebde437f2c1b680d039cc3e7c0
treec505243402021d0043d7d1bdaa931ebbbfe7e442
parent4aea7a12b6a6621a67267050df0688f28adfe6b4
encoding/json: rename Indent method to SetIndent

CL 21057 added this method during the Go 1.7 cycle
(so it is not yet released and still possible to revise).

This makes it clearer that the method is not doing something
(like func Indent does), but just changing a setting about doing
something later.

Also document that this is in some sense irreversible.
I think that's probably a mistake but the original CL discussion
claimed it as a feature, so I'll leave it alone.

For #6492.

Change-Id: If4415c869a9196501056c143811a308822d5a420
Reviewed-on: https://go-review.googlesource.com/23295
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Andrew Gerrand <adg@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
src/encoding/json/stream.go
src/encoding/json/stream_test.go