diff --git a/src/pkg/time/format.go b/src/pkg/time/format.go index 98d4bb5c657..bb32bc84315 100644 --- a/src/pkg/time/format.go +++ b/src/pkg/time/format.go @@ -367,7 +367,7 @@ func (t Time) Format(layout string) string { hour int = -1 min int sec int - b buffer + b buffer = make([]byte, 0, len(layout)) ) // Each iteration generates one std value. for {