summaryrefslogtreecommitdiff
path: root/xgbgen/go_struct.go
diff options
context:
space:
mode:
authorAndrew Gallant (Ocelot) <[email protected]>2012-05-26 18:24:52 -0400
committerAndrew Gallant (Ocelot) <[email protected]>2012-05-26 18:24:52 -0400
commitc21c2486a0fae62fe2c2ef082ad38776b14f4266 (patch)
tree5e5ba8045506ddb00ed15922bbc4540bd5778380 /xgbgen/go_struct.go
parentaaead2a36f4c17e304cc6dcd3f434a88eb0291fb (diff)
Bug fix in the generator that was outputting %(MISSING) crud.
Diffstat (limited to 'xgbgen/go_struct.go')
-rw-r--r--xgbgen/go_struct.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/xgbgen/go_struct.go b/xgbgen/go_struct.go
index a988893..cb765a0 100644
--- a/xgbgen/go_struct.go
+++ b/xgbgen/go_struct.go
@@ -85,7 +85,7 @@ func (s *Struct) Write(c *Context) {
func (s *Struct) WriteList(c *Context) {
c.Putln("// %sListBytes writes a list of %s values to a byte slice.",
- s.SrcName())
+ s.SrcName(), s.SrcName())
c.Putln("func %sListBytes(buf []byte, list []%s) int {",
s.SrcName(), s.SrcName())
c.Putln("b := 0")