Skip to content

Commit 4511f20

Browse files
committed
docs: edit LookupIdent doc
1 parent c8bac44 commit 4511f20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

token/token.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ var keywords = map[string]TokenType{
5555
"return": RETURN,
5656
}
5757

58-
// LookupIdent return the identifier of a keyword
58+
// LookupIdent return the TokenType of a string
5959
func LookupIdent(ident string) TokenType {
6060
if tok, ok := keywords[ident]; ok {
6161
return tok

0 commit comments

Comments
 (0)