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) {
|
func (u *Union) WriteList(c *Context) {
|
||||||
c.Putln("// %sListBytes writes a list of %s values to a byte slice.",
|
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 {",
|
c.Putln("func %sListBytes(buf []byte, list []%s) int {",
|
||||||
u.SrcName(), u.SrcName())
|
u.SrcName(), u.SrcName())
|
||||||
c.Putln("b := 0")
|
c.Putln("b := 0")
|
||||||
|
|
|
@ -1093,7 +1093,7 @@ func (v ClientMessageDataUnion) Bytes() []byte {
|
||||||
return buf
|
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 {
|
func ClientMessageDataUnionListBytes(buf []byte, list []ClientMessageDataUnion) int {
|
||||||
b := 0
|
b := 0
|
||||||
var unionBytes []byte
|
var unionBytes []byte
|
||||||
|
|
Loading…
Reference in New Issue