Skip to content

Commit dec9328

Browse files
Improve docs.
1 parent d3feedc commit dec9328

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

fastcache.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ func (c *Cache) UpdateStats(s *Stats) {
141141
// The function returns immediately if f returns non-nil error.
142142
// It returns the error returned by f.
143143
//
144+
// f is called sequentially for all the entries in the cache.
144145
// f cannot hold pointers to k and v contents after returning.
145146
// f cannot modify k and v contents.
146147
func (c *Cache) VisitAllEntries(f func(k, v []byte) error) error {

0 commit comments

Comments
 (0)