From 970ce1c866f767796ca36f5a3ac37c7222bf31d9 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Sat, 23 Jan 2016 23:22:49 -0500 Subject: [PATCH] encoding/xml: update docs for Token Fixes #13757. Change-Id: I1b52593df8df0e98ce7342767eb34eccecc11761 Reviewed-on: https://go-review.googlesource.com/18854 Run-TryBot: Russ Cox TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- src/encoding/xml/xml.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.50.0