aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/xml/xml.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2016-01-23 23:22:49 -0500
committerRuss Cox <rsc@golang.org>2016-01-24 16:07:30 +0000
commit970ce1c866f767796ca36f5a3ac37c7222bf31d9 (patch)
treebe687ff43de4e82e28d20aeb4a77e876eafa0c9b /src/encoding/xml/xml.go
parent0bae38e094098237c12dbb7344371f35e9663905 (diff)
downloadgo-970ce1c866f767796ca36f5a3ac37c7222bf31d9.tar.xz
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>
Diffstat (limited to 'src/encoding/xml/xml.go')
-rw-r--r--src/encoding/xml/xml.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/encoding/xml/xml.go b/src/encoding/xml/xml.go
index 70ff877172..45f4157318 100644
--- a/src/encoding/xml/xml.go
+++ b/src/encoding/xml/xml.go
@@ -227,7 +227,8 @@ func NewDecoder(r io.Reader) *Decoder {
//
// Token guarantees that the StartElement and EndElement
// 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.
//
// Token implements XML name spaces as described by