Browse Source

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 8 years ago
parent
commit
5ccada7d0a
1 changed files with 2 additions and 2 deletions
  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
 	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 {
 func (z *Tokenizer) Token() Token {
 	t := Token{Type: z.tt}
 	t := Token{Type: z.tt}
 	switch z.tt {
 	switch z.tt {