From 46ee09eff19f85512637bc85014f78937c3b688a Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Tue, 8 Nov 2011 10:09:17 +1100 Subject: [PATCH] html: fix typo in package docs. Fixes #2419. R=dsymonds, rsc CC=golang-dev https://golang.org/cl/5352046 --- src/pkg/html/doc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/html/doc.go b/src/pkg/html/doc.go index 0620679bd64..1bea690c2c8 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--