aboutsummaryrefslogtreecommitdiff
path: root/nexgb/xgbgen
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2013-12-28 09:25:03 -0500
committerPřemysl Janouch <p@janouch.name>2018-09-08 16:49:19 +0200
commit5a07ac7108ef2b4074c058fbbd104c49d3cfdc9b (patch)
tree93860181c5f56d42146f020641cb19dcf79d28f6 /nexgb/xgbgen
parentefe87cb9081ff3806182cf911f4fd8fbc4928244 (diff)
downloadhaven-5a07ac7108ef2b4074c058fbbd104c49d3cfdc9b.tar.gz
haven-5a07ac7108ef2b4074c058fbbd104c49d3cfdc9b.tar.xz
haven-5a07ac7108ef2b4074c058fbbd104c49d3cfdc9b.zip
Fix fmt'd output for union list writing.
Diffstat (limited to 'nexgb/xgbgen')
-rw-r--r--nexgb/xgbgen/go_union.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/nexgb/xgbgen/go_union.go b/nexgb/xgbgen/go_union.go
index 1a8684c..74816d3 100644
--- a/nexgb/xgbgen/go_union.go
+++ b/nexgb/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")