Skip to content

Commit f6f4ded

Browse files
committed
Fix doc of SizeStats.Capacity regarding map backend
1 parent 7ec5515 commit f6f4ded

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stats.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ type SizeStats struct {
2121
Size int
2222
// Capacity is the maximum number of allowed items in the cache.
2323
//
24-
// Note that, for map backend, there is no upper bound in number of items in the cache;
25-
// Capacity only represents the current cap() of the map.
24+
// Note that, for map backend, there is no upper bound in number of items in the cache.
25+
// Therefore, Capacity is always -1 for map backend.
2626
Capacity int
2727
}
2828

0 commit comments

Comments
 (0)