Skip to content

Commit 38b74c6

Browse files
author
Achille Roussel
committed
fix typo
1 parent 1f266d5 commit 38b74c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

time_legacy.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ import "time"
1515
// appendTimeFormat is used as an optimization on Go 1.5+ to avoid the dynamic
1616
// memory allocation that happens for the string returned by time.Format.
1717
func appendTimeFormat(b []byte, t time.Time, format string) []byte {
18-
return append(b, time.Format(format)...)
18+
return append(b, t.Format(format)...)
1919
}

0 commit comments

Comments
 (0)