summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNigel Tao <nigeltao@golang.org>2011-11-08 10:09:17 +1100
committerNigel Tao <nigeltao@golang.org>2011-11-08 10:09:17 +1100
commit4be03a4922417bda542f58ca3b69d4a4748451ad (patch)
tree46e9cbcd37c5b17ce72c305a9aeee80cd070aad8
parent6dd00a98db1d039ab690e16085c14b5f909aba1e (diff)
downloadgo-4be03a4922417bda542f58ca3b69d4a4748451ad.tar.gz
html: fix typo in package docs.
Fixes issue 2419. R=dsymonds, rsc CC=golang-dev http://codereview.appspot.com/5352046
-rw-r--r--src/pkg/html/doc.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/html/doc.go b/src/pkg/html/doc.go
index 0620679bd..1bea690c2 100644
--- a/src/pkg/html/doc.go
+++ b/src/pkg/html/doc.go
@@ -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--