Fix fmt'd output for union list writing.

This commit is contained in:
Andrew Gallant 2013-12-28 09:25:03 -05:00 committed by Přemysl Janouch
parent efe87cb908
commit 5a07ac7108
Signed by: p
GPG Key ID: A0420B94F92B9493
2 changed files with 2 additions and 2 deletions

View File

@ -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")

View File

@ -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