diff options
| author | Andrew Gallant <[email protected]> | 2013-12-28 09:25:03 -0500 |
|---|---|---|
| committer | Andrew Gallant <[email protected]> | 2013-12-28 09:25:03 -0500 |
| commit | 87c1596c4f95a46e9a4418821e92713109c90131 (patch) | |
| tree | 1b648b4c0563b2ab95970a0a7464c647485fae97 | |
| parent | 490ec2a43c9d1970de5b3b7e54bb3f8e86a5c547 (diff) | |
Fix fmt'd output for union list writing.
| -rw-r--r-- | xgbgen/go_union.go | 2 | ||||
| -rw-r--r-- | xproto/xproto.go | 2 |
2 files changed, 2 insertions, 2 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") diff --git a/xproto/xproto.go b/xproto/xproto.go index 1e5f4bb..0de64fd 100644 --- a/xproto/xproto.go +++ b/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 |
