summaryrefslogtreecommitdiff
path: root/src/pkg/encoding/xml/xml.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/encoding/xml/xml.go')
-rw-r--r--src/pkg/encoding/xml/xml.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pkg/encoding/xml/xml.go b/src/pkg/encoding/xml/xml.go
index 5b9d67002..b473cb845 100644
--- a/src/pkg/encoding/xml/xml.go
+++ b/src/pkg/encoding/xml/xml.go
@@ -200,6 +200,8 @@ type Decoder struct {
}
// NewDecoder creates a new XML parser reading from r.
+// If r does not implement io.ByteReader, NewDecoder will
+// do its own buffering.
func NewDecoder(r io.Reader) *Decoder {
d := &Decoder{
ns: make(map[string]string),