diff options
| author | Ondřej Surý <ondrej@sury.org> | 2011-02-18 09:50:58 +0100 | 
|---|---|---|
| committer | Ondřej Surý <ondrej@sury.org> | 2011-02-18 09:53:27 +0100 | 
| commit | 91664defe0a75da15661a37a7f585b0c8523bf4e (patch) | |
| tree | 8d7133037ce477c00ba0408d3f0892e0a8b5744d /src/pkg/xml/xml.go | |
| parent | ac2d3c9eb73a2d23848c55c3171d8ff6dd0feed9 (diff) | |
| download | golang-91664defe0a75da15661a37a7f585b0c8523bf4e.tar.gz | |
Imported Upstream version 2011.02.15
Diffstat (limited to 'src/pkg/xml/xml.go')
| -rw-r--r-- | src/pkg/xml/xml.go | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/src/pkg/xml/xml.go b/src/pkg/xml/xml.go index 4d9c672d2..417b4edfd 100644 --- a/src/pkg/xml/xml.go +++ b/src/pkg/xml/xml.go @@ -163,7 +163,7 @@ type Parser struct {  	//	"quot": `"`,  	Entity map[string]string -	r         io.ReadByter +	r         io.ByteReader  	buf       bytes.Buffer  	saved     *bytes.Buffer  	stk       *stack @@ -191,7 +191,7 @@ func NewParser(r io.Reader) *Parser {  	// Assume that if reader has its own  	// ReadByte, it's efficient enough.  	// Otherwise, use bufio. -	if rb, ok := r.(io.ReadByter); ok { +	if rb, ok := r.(io.ByteReader); ok {  		p.r = rb  	} else {  		p.r = bufio.NewReader(r) | 
