]> Cypherpunks repositories - gostls13.git/commitdiff
cgo: Print required space after parameter name in wrapper function.
authorIan Lance Taylor <iant@golang.org>
Thu, 18 Nov 2010 20:34:04 +0000 (12:34 -0800)
committerIan Lance Taylor <iant@golang.org>
Thu, 18 Nov 2010 20:34:04 +0000 (12:34 -0800)
R=rsc, gri
CC=golang-dev
https://golang.org/cl/3206041

src/cmd/cgo/out.go

index d01de4a749acb2d33a08c9b6b3cd4b975811ecf2..5eb2252fbbffb0a641a016c085c367323371e288 100644 (file)
@@ -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, ")")