Explorar o código

html: fix misleading Tokenizer.Token comment

Change-Id: I39359b5fa52faf5b69005ba47b58be3beec16c4e
Reviewed-on: https://go-review.googlesource.com/87515
Reviewed-by: David Symonds <dsymonds@golang.org>
Nigel Tao %!s(int64=8) %!d(string=hai) anos
pai
achega
5ccada7d0a
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      html/token.go

+ 2 - 2
html/token.go

@@ -1161,8 +1161,8 @@ func (z *Tokenizer) TagAttr() (key, val []byte, moreAttr bool) {
 	return nil, nil, false
 }
 
-// Token returns the next Token. The result's Data and Attr values remain valid
-// after subsequent Next calls.
+// Token returns the current Token. The result's Data and Attr values remain
+// valid after subsequent Next calls.
 func (z *Tokenizer) Token() Token {
 	t := Token{Type: z.tt}
 	switch z.tt {