From: Nigel Tao Date: Mon, 7 Nov 2011 23:09:17 +0000 (+1100) Subject: html: fix typo in package docs. X-Git-Tag: weekly.2011-11-08~8 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=46ee09eff19f85512637bc85014f78937c3b688a;p=gostls13.git html: fix typo in package docs. Fixes #2419. R=dsymonds, rsc CC=golang-dev https://golang.org/cl/5352046 --- diff --git a/src/pkg/html/doc.go b/src/pkg/html/doc.go index 0620679bd6..1bea690c2c 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--