Bläddra i källkod

Update code comment

Matt Bolt 4 år sedan
förälder
incheckning
7a23f81c5a
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      pkg/util/cache/cachegroup.go

+ 1 - 1
pkg/util/cache/cachegroup.go

@@ -27,7 +27,7 @@ type CacheGroup[T comparable] struct {
 	max              int
 }
 
-// NewCacheGroup[T] creates a new cache group instance the max number of keys to cache at any given time.
+// NewCacheGroup[T] creates a new cache group instance given the max number of keys to cache. 
 // If a new cache entry is added that exceeds the maximum, the oldest entry is evicted.
 func NewCacheGroup[T comparable](max int) *CacheGroup[T] {
 	return &CacheGroup[T]{