mirror of https://github.com/golang/go.git
encoding/xml: update docs for Token
Fixes #13757. Change-Id: I1b52593df8df0e98ce7342767eb34eccecc11761 Reviewed-on: https://go-review.googlesource.com/18854 Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
0bae38e094
commit
970ce1c866
|
|
@ -227,7 +227,8 @@ func NewDecoder(r io.Reader) *Decoder {
|
||||||
//
|
//
|
||||||
// Token guarantees that the StartElement and EndElement
|
// Token guarantees that the StartElement and EndElement
|
||||||
// tokens it returns are properly nested and matched:
|
// tokens it returns are properly nested and matched:
|
||||||
// if Token encounters an unexpected end element,
|
// if Token encounters an unexpected end element
|
||||||
|
// or EOF before all expected end elements,
|
||||||
// it will return an error.
|
// it will return an error.
|
||||||
//
|
//
|
||||||
// Token implements XML name spaces as described by
|
// Token implements XML name spaces as described by
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue