mirror of
https://github.com/golang/go
synced 2024-11-19 21:54:40 -07:00
encoding/xml: document NewDecoder buffering
Fixes #7225 LGTM=r R=golang-codereviews, r CC=golang-codereviews, rsc https://golang.org/cl/88710043
This commit is contained in:
parent
1f40b841b3
commit
877e0a135f
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user