Merge pull request #799 from ceh/vet-conf-lang

config/lang: address vet reports
This commit is contained in:
Mitchell Hashimoto 2015-01-14 15:24:59 -08:00
commit b9eb4c8658
2 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,7 @@ func (v *TypeCheck) visitConcat(n *ast.Concat) {
for i, t := range types { for i, t := range types {
if t != ast.TypeString { if t != ast.TypeString {
v.createErr(n, fmt.Sprintf( v.createErr(n, fmt.Sprintf(
"argument %d must be a sting", n, i+1)) "argument %d must be a string", i+1))
return return
} }
} }

View File

@ -77,7 +77,7 @@ func (x *parserLex) lex(yylval *parserSymType) int {
case parserModeInterpolation: case parserModeInterpolation:
return x.lexModeInterpolation(yylval) return x.lexModeInterpolation(yylval)
default: default:
x.Error(fmt.Sprintf("Unknown parse mode: %s", x.mode)) x.Error(fmt.Sprintf("Unknown parse mode: %d", x.mode))
return lexEOF return lexEOF
} }
} }