Rename x T to x: T for fields and func args

This commit is contained in:
Nigel Tao committed 2019-10-12 21:49:04 +11:00
1 parent 5b4e3647c0
commit 1520a1f345
15 files changed
+226 -216

No files matched your search

+1 -1
View File
@@ -284,7 +284,7 @@ func (h *genHelper) genWuffs(dirname string, qualifiedFilenames []string) error
}
// TODO: what happens if the XType is from another package?
// Similarly for the out-param.
fmt.Fprintf(out, "%s %s", field.Name().Str(&h.tm), field.XType().Str(&h.tm))
fmt.Fprintf(out, "%s: %s", field.Name().Str(&h.tm), field.XType().Str(&h.tm))
}
fmt.Fprintf(out, ") ")
if o := n.Out(); o != nil {