aboutsummaryrefslogtreecommitdiff
path: root/src/encoding
diff options
context:
space:
mode:
Diffstat (limited to 'src/encoding')
-rw-r--r--src/encoding/json/example_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/encoding/json/example_test.go b/src/encoding/json/example_test.go
index 2088c34297..fbecf1b593 100644
--- a/src/encoding/json/example_test.go
+++ b/src/encoding/json/example_test.go
@@ -279,12 +279,12 @@ func ExampleMarshalIndent() {
"b": 2,
}
- json, err := json.MarshalIndent(data, "<prefix>", "<indent>")
+ b, err := json.MarshalIndent(data, "<prefix>", "<indent>")
if err != nil {
log.Fatal(err)
}
- fmt.Println(string(json))
+ fmt.Println(string(b))
// Output:
// {
// <prefix><indent>"a": 1,