Commit f6279b46 authored by Gustavo Niemeyer's avatar Gustavo Niemeyer

html: fix doc after Err method name change

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5411045
parent 9bfe9dfd
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment