Skip to content

Commit

Permalink
fix comment error
Browse files Browse the repository at this point in the history
  • Loading branch information
sandyskies authored Dec 16, 2018
1 parent b2abadb commit 446770d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tars/tools/tars2go/gen_go.go
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ func (gen *GenGo) genEnum(en *EnumInfo) {
c.WriteString("type " + en.TName + " int32\n")
c.WriteString("const (\n")
for _, v := range en.Mb {
c.WriteString("//" + gen.makeEnumName(en, &v) + " enum")
c.WriteString("//" + gen.makeEnumName(en, &v) + " enum\n")
c.WriteString(gen.makeEnumName(en, &v) + ` = ` + strconv.Itoa(int(v.Value)) + "\n")
}

Expand Down

0 comments on commit 446770d

Please sign in to comment.