aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2010-11-18 12:34:04 -0800
committerIan Lance Taylor <iant@golang.org>2010-11-18 12:34:04 -0800
commit553a88cfe7ba9ba75eb999cfeedae4f2808ee029 (patch)
treef4034e8d8aa37808f29f92d276096f72d6f95e13
parentd853b594b431ad86cfea78e06847a8319280982b (diff)
downloadgo-553a88cfe7ba9ba75eb999cfeedae4f2808ee029.tar.gz
go-553a88cfe7ba9ba75eb999cfeedae4f2808ee029.zip
cgo: Print required space after parameter name in wrapper function.
R=rsc, gri CC=golang-dev https://golang.org/cl/3206041
-rw-r--r--src/cmd/cgo/out.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/cgo/out.go b/src/cmd/cgo/out.go
index d01de4a749..5eb2252fbb 100644
--- a/src/cmd/cgo/out.go
+++ b/src/cmd/cgo/out.go
@@ -426,7 +426,7 @@ func (p *Package) writeExports(fgo2, fc *os.File) {
printer.Fprint(fgo2, fn.Recv.List[0].Type)
forFieldList(fntype.Params,
func(i int, atype ast.Expr) {
- fmt.Fprintf(fgo2, ", p%d", i)
+ fmt.Fprintf(fgo2, ", p%d ", i)
printer.Fprint(fgo2, atype)
})
fmt.Fprintf(fgo2, ")")