From 8b39f7d9018d916cdd8c8ad44d276146c4da374c Mon Sep 17 00:00:00 2001 From: Fedor Korotkiy Date: Sun, 29 Mar 2020 13:10:24 +0000 Subject: [PATCH] Update cache_test.go --- lrucache/cache_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lrucache/cache_test.go b/lrucache/cache_test.go index 731b732..fadbf92 100644 --- a/lrucache/cache_test.go +++ b/lrucache/cache_test.go @@ -161,7 +161,7 @@ func BenchmarkCache_Set(b *testing.B) { b.ResetTimer() b.ReportAllocs() for i := 0; i < b.N; i++ { - c.Set(i % tc.cap, i) + c.Set(i%tc.cap, i) } }) }