]> Cypherpunks repositories - gostls13.git/commit
xml: handle unexpected EOF while parsing and fix a bug in name
authorArvindh Rajesh Tamilmani <art@a-30.net>
Tue, 15 Dec 2009 03:28:36 +0000 (19:28 -0800)
committerRuss Cox <rsc@golang.org>
Tue, 15 Dec 2009 03:28:36 +0000 (19:28 -0800)
commitdec5bb7882baf1cc1935e3c1d5d14965e47aae44
tree642d38c1a6b7b5dfc3c5de3deb54f92707e8d061
parent19c18358ca108363d3facd5ca5b39f0048b4ddb5
xml: handle unexpected EOF while parsing and fix a bug in name

mustgetc reports unexpected EOF as SyntaxError.  using
mustgetc seems to be a better approach than letting the
caller handle unexpected EOF every time.

name: the second if statement should explicitly return
ok==false.

R=rsc
https://golang.org/cl/174083
src/pkg/xml/xml.go
src/pkg/xml/xml_test.go