diff options
Diffstat (limited to 'libgo/go/html/doc.go')
-rw-r--r-- | libgo/go/html/doc.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/go/html/doc.go b/libgo/go/html/doc.go index 1bea690c2c8..56b194ffb90 100644 --- a/libgo/go/html/doc.go +++ b/libgo/go/html/doc.go @@ -37,7 +37,7 @@ lower-cased, and attributes are collected into a []Attribute. For example: for { if z.Next() == html.ErrorToken { // Returning io.EOF indicates success. - return z.Error() + return z.Err() } emitToken(z.Token()) } @@ -51,7 +51,7 @@ call to Next. For example, to extract an HTML page's anchor text: tt := z.Next() switch tt { case ErrorToken: - return z.Error() + return z.Err() case TextToken: if depth > 0 { // emitBytes should copy the []byte it receives, |