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