]> Cypherpunks repositories - gostls13.git/commitdiff
html: fix doc after Err method name change
authorGustavo Niemeyer <gustavo@niemeyer.net>
Fri, 18 Nov 2011 03:06:59 +0000 (01:06 -0200)
committerGustavo Niemeyer <gustavo@niemeyer.net>
Fri, 18 Nov 2011 03:06:59 +0000 (01:06 -0200)
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5411045

src/pkg/html/doc.go

index 1bea690c2c8984fa663bb2361be9dc51d71eb0e2..56b194ffb9080c3ec6d77784a47403e9ddb7ce5c 100644 (file)
@@ -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,