diff options
author | Ian Lance Taylor <iant@golang.org> | 2010-11-18 12:34:04 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2010-11-18 12:34:04 -0800 |
commit | 553a88cfe7ba9ba75eb999cfeedae4f2808ee029 (patch) | |
tree | f4034e8d8aa37808f29f92d276096f72d6f95e13 | |
parent | d853b594b431ad86cfea78e06847a8319280982b (diff) | |
download | go-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.go | 2 |
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, ")") |