Fix fmt'd output for union list writing.
This commit is contained in:
parent
efe87cb908
commit
5a07ac7108
|
@ -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")
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue