Commit abd7ba02 authored by Marvin Stenger's avatar Marvin Stenger Committed by Ian Lance Taylor

encoding/json: remove superfluous comment

Remove an old comment introduced in golang.org/cl/9073.

Change-Id: I14be27ddfac987f44d839920bc4d02361a576f06
Reviewed-on: https://go-review.googlesource.com/66371
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: 's avatarDaniel Martí <mvdan@mvdan.cc>
Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
parent 6f2e5f9c
...@@ -500,20 +500,3 @@ func (dec *Decoder) peek() (byte, error) { ...@@ -500,20 +500,3 @@ func (dec *Decoder) peek() (byte, error) {
err = dec.refill() err = dec.refill()
} }
} }
/*
TODO
// EncodeToken writes the given JSON token to the stream.
// It returns an error if the delimiters [ ] { } are not properly used.
//
// EncodeToken does not call Flush, because usually it is part of
// a larger operation such as Encode, and those will call Flush when finished.
// Callers that create an Encoder and then invoke EncodeToken directly,
// without using Encode, need to call Flush when finished to ensure that
// the JSON is written to the underlying writer.
func (e *Encoder) EncodeToken(t Token) error {
...
}
*/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment