Skip to content

Commit

Permalink
fix vet errors revealed by tip "go test" (google#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
adonovan authored Nov 10, 2017
1 parent 70639d2 commit 4b42bbf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion skylarkstruct/struct.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ func structsEqual(x, y *Struct, depth int) (bool, error) {
}

if eq, err := skylark.Equal(x.constructor, y.constructor); err != nil {
return false, fmt.Errorf("error comparing struct constructors: %v",
return false, fmt.Errorf("error comparing struct constructors %v and %v: %v",
x.constructor, y.constructor, err)
} else if !eq {
return false, nil
Expand Down
2 changes: 1 addition & 1 deletion syntax/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ func (p *parser) parseLoadStmt() *LoadStmt {
id := p.parseIdent()
to = append(to, id)
if p.tok != EQ {
p.in.errorf(p.in.pos, `load operand must be "%s" or %s="originalname" (want '=' after %s)`, id.Name, id.Name)
p.in.errorf(p.in.pos, `load operand must be "%[1]s" or %[1]s="originalname" (want '=' after %[1]s)`, id.Name)
}
p.consume(EQ)
if p.tok != STRING {
Expand Down

0 comments on commit 4b42bbf

Please sign in to comment.