Skip to content

Commit

Permalink
docs: edit LookupIdent doc
Browse files Browse the repository at this point in the history
  • Loading branch information
estevanbs committed Jul 16, 2024
1 parent c8bac44 commit 4511f20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion token/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ var keywords = map[string]TokenType{
"return": RETURN,
}

// LookupIdent return the identifier of a keyword
// LookupIdent return the TokenType of a string
func LookupIdent(ident string) TokenType {
if tok, ok := keywords[ident]; ok {
return tok
Expand Down

0 comments on commit 4511f20

Please sign in to comment.