Skip to content

Commit f129364

Browse files
dveedenlance6716
andauthored
Update serialization/serialization.go
Co-authored-by: lance6716 <[email protected]>
1 parent 173111f commit f129364

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

serialization/serialization.go

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ func (f *Format) String() (text string) {
4747
}
4848

4949
func (f *Format) stringParts() (parts []string) {
50+
parts = make([]string, 0, len(f.Fields)*2+1)
5051
parts = append(parts, fmt.Sprintf("Format (Size: %d, LastNonIgnorableField: %d)",
5152
f.Size, f.LastNonIgnorableField))
5253

0 commit comments

Comments
 (0)