Skip to content

Commit

Permalink
Fix fmt'd output for union list writing.
Browse files Browse the repository at this point in the history
  • Loading branch information
BurntSushi committed Dec 28, 2013
1 parent 490ec2a commit 87c1596
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion xgbgen/go_union.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion xproto/xproto.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 87c1596

Please sign in to comment.