diff --git a/parse.go b/parse.go index 0491743..57d9fd3 100644 --- a/parse.go +++ b/parse.go @@ -146,7 +146,7 @@ func ParseCommands(cmdString string) ([]string, error) { } return cmds, nil } - // evalute a rune + // evaluate a rune c := cmdString[next] switch c { case ' ': diff --git a/selector.go b/selector.go index 36884ef..6249f77 100644 --- a/selector.go +++ b/selector.go @@ -495,7 +495,7 @@ func parseNthPseudo(cmd string) (PseudoClass, error) { nthString := cmd[i+1:] i = strings.IndexRune(nthString, ')') if i < 0 { - return nil, fmt.Errorf("Unmatched '(' for psuedo class %s", pseudoName) + return nil, fmt.Errorf("Unmatched '(' for pseudo class %s", pseudoName) } else if i != len(nthString)-1 { return nil, fmt.Errorf("%s(n) must end selector", pseudoName) }