summaryrefslogtreecommitdiff
path: root/xgbgen
diff options
context:
space:
mode:
authorAndrew Gallant <[email protected]>2013-12-28 09:25:03 -0500
committerAndrew Gallant <[email protected]>2013-12-28 09:25:03 -0500
commit87c1596c4f95a46e9a4418821e92713109c90131 (patch)
tree1b648b4c0563b2ab95970a0a7464c647485fae97 /xgbgen
parent490ec2a43c9d1970de5b3b7e54bb3f8e86a5c547 (diff)
Fix fmt'd output for union list writing.
Diffstat (limited to 'xgbgen')
-rw-r--r--xgbgen/go_union.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/xgbgen/go_union.go b/xgbgen/go_union.go
index 1a8684c..74816d3 100644
--- a/xgbgen/go_union.go
+++ b/xgbgen/go_union.go
@@ -117,7 +117,7 @@ func (u *Union) Write(c *Context) {
func (u *Union) WriteList(c *Context) {
c.Putln("// %sListBytes writes a list of %s values to a byte slice.",
- u.SrcName())
+ u.SrcName(), u.SrcName())
c.Putln("func %sListBytes(buf []byte, list []%s) int {",
u.SrcName(), u.SrcName())
c.Putln("b := 0")