Commit 46ee09ef authored by Nigel Tao's avatar Nigel Tao

html: fix typo in package docs.

Fixes #2419.

R=dsymonds, rsc
CC=golang-dev
https://golang.org/cl/5352046
parent 2d89db65
......@@ -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--
......
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