From 5a07ac7108ef2b4074c058fbbd104c49d3cfdc9b Mon Sep 17 00:00:00 2001 From: Andrew Gallant Date: Sat, 28 Dec 2013 09:25:03 -0500 Subject: Fix fmt'd output for union list writing. --- nexgb/xgbgen/go_union.go | 2 +- nexgb/xproto/xproto.go | 2 +- 2 files changed, 2 insertions(+), 2 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") diff --git a/nexgb/xproto/xproto.go b/nexgb/xproto/xproto.go index 1e5f4bb..0de64fd 100644 --- a/nexgb/xproto/xproto.go +++ b/nexgb/xproto/xproto.go @@ -1093,7 +1093,7 @@ func (v ClientMessageDataUnion) Bytes() []byte { return buf } -// ClientMessageDataUnionListBytes writes a list of %s(MISSING) values to a byte slice. +// ClientMessageDataUnionListBytes writes a list of ClientMessageDataUnion values to a byte slice. func ClientMessageDataUnionListBytes(buf []byte, list []ClientMessageDataUnion) int { b := 0 var unionBytes []byte -- cgit v1.2.3-70-g09d2