Avoid allocation.

This commit is contained in:
Nuno Cruces
2024-01-12 13:33:43 +00:00
parent 6b0c2c0554
commit 145bc228af
3 changed files with 13 additions and 10 deletions

View File

@@ -67,7 +67,7 @@ func Fuzz_stringOrTime_2(f *testing.F) {
if !v.Equal(date) {
t.Fatalf("did not round-trip: %v", date)
}
// Make with the same zone offset:
// With the same zone offset:
_, off1 := v.Zone()
_, off2 := date.Zone()
if off1 != off2 {