config/lang: address vet reports

Fixes the following vet reports:

config/lang/check_types.go:98: arg n for printf verb %d of wrong type: *github.com/hashicorp/terraform/config/lang/ast.Concat
config/lang/lex.go:80: arg x.mode for printf verb %s of wrong type: lang.parserMode
This commit is contained in:
Emil Hessman 2015-01-14 22:04:28 +01:00
parent 9ee36269f5
commit 482460c4c8
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 {
if t != ast.TypeString {
v.createErr(n, fmt.Sprintf(
"argument %d must be a sting", n, i+1))
"argument %d must be a string", i+1))
return
}
}

View File

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