]> Cypherpunks repositories - gostls13.git/commitdiff
html: fix typo in package docs.
authorNigel Tao <nigeltao@golang.org>
Mon, 7 Nov 2011 23:09:17 +0000 (10:09 +1100)
committerNigel Tao <nigeltao@golang.org>
Mon, 7 Nov 2011 23:09:17 +0000 (10:09 +1100)
Fixes #2419.

R=dsymonds, rsc
CC=golang-dev
https://golang.org/cl/5352046

src/pkg/html/doc.go

index 0620679bd645f8d59093b7a6a10692080ba36343..1bea690c2c8984fa663bb2361be9dc51d71eb0e2 100644 (file)
@@ -61,7 +61,7 @@ call to Next. For example, to extract an HTML page's anchor text:
                case StartTagToken, EndTagToken:
                        tn, _ := z.TagName()
                        if len(tn) == 1 && tn[0] == 'a' {
-                               if tt == StartTag {
+                               if tt == StartTagToken {
                                        depth++
                                } else {
                                        depth--