Skip to content

Commit

Permalink
encoding/json: remove superfluous comment
Browse files Browse the repository at this point in the history
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 <[email protected]>
TryBot-Result: Gobot Gobot <[email protected]>
Reviewed-by: Daniel Martí <[email protected]>
Reviewed-by: Ian Lance Taylor <[email protected]>
  • Loading branch information
stemar94 authored and ianlancetaylor committed Sep 27, 2017
1 parent 6f2e5f9 commit abd7ba0
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/encoding/json/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -500,20 +500,3 @@ func (dec *Decoder) peek() (byte, error) {
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 {
...
}
*/

0 comments on commit abd7ba0

Please sign in to comment.