Merge changes I92cea061,I67705c5c

* changes:
  Add spaces around := when dumping assignments
  Fix govet issue
This commit is contained in:
Colin Cross
2016-06-01 04:53:26 +00:00
committed by Gerrit Code Review
2 changed files with 2 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ func (x *Assignment) Dump() string {
if x.Target != nil {
target = x.Target.Dump() + ": "
}
return target + x.Name.Dump() + x.Type + x.Value.Dump()
return target + x.Name.Dump() + " " + x.Type + " " + x.Value.Dump()
}
func (x *Assignment) Pos() Pos {

View File

@@ -61,7 +61,7 @@ func main() {
flag.Parse()
if *out == "" {
fmt.Fprintln(os.Stderr, "error: -o is required\n")
fmt.Fprintf(os.Stderr, "error: -o is required\n")
usage()
}