1
0
mirror of https://github.com/ericchiang/pup synced 2025-01-29 17:11:00 +00:00

Merge pull request #68 from jwilk/spelling

Fix typos
This commit is contained in:
Eric Chiang 2016-08-19 10:09:31 -07:00 committed by GitHub
commit f7c5cd0fa4
2 changed files with 2 additions and 2 deletions

View File

@ -146,7 +146,7 @@ func ParseCommands(cmdString string) ([]string, error) {
} }
return cmds, nil return cmds, nil
} }
// evalute a rune // evaluate a rune
c := cmdString[next] c := cmdString[next]
switch c { switch c {
case ' ': case ' ':

View File

@ -495,7 +495,7 @@ func parseNthPseudo(cmd string) (PseudoClass, error) {
nthString := cmd[i+1:] nthString := cmd[i+1:]
i = strings.IndexRune(nthString, ')') i = strings.IndexRune(nthString, ')')
if i < 0 { 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 { } else if i != len(nthString)-1 {
return nil, fmt.Errorf("%s(n) must end selector", pseudoName) return nil, fmt.Errorf("%s(n) must end selector", pseudoName)
} }