Fix fmt'd output for union list writing.

This commit is contained in:
Andrew Gallant
2018-09-08 16:49:19 +02:00
committed by p
parent efe87cb908
commit 5a07ac7108
2 changed files with 2 additions and 2 deletions
+1 -1
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")
+1 -1
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