diff options
Diffstat (limited to 'src/encoding/json/encode.go')
| -rw-r--r-- | src/encoding/json/encode.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/encoding/json/encode.go b/src/encoding/json/encode.go index 8b967471ce..f91a78724c 100644 --- a/src/encoding/json/encode.go +++ b/src/encoding/json/encode.go @@ -119,8 +119,8 @@ import ( // // Map values encode as JSON objects. The map's key type must either be a // string, an integer type, or implement encoding.TextMarshaler. The map keys -// are used as JSON object keys by applying the following rules, subject to the -// UTF-8 coercion described for string values above: +// are sorted and used as JSON object keys by applying the following rules, +// subject to the UTF-8 coercion described for string values above: // - string keys are used directly // - encoding.TextMarshalers are marshaled // - integer keys are converted to strings |
