Skip to content

Commit

Permalink
Improve docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiavrammsd committed Feb 10, 2019
1 parent 7f5248e commit 39cf0ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fastcache.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ func (c *Cache) UpdateStats(s *Stats) {
// The function returns immediately if f returns non-nil error.
// It returns the error returned by f.
//
// f is called sequentially for all the entries in the cache.
// f cannot hold pointers to k and v contents after returning.
// f cannot modify k and v contents.
func (c *Cache) VisitAllEntries(f func(k, v []byte) error) error {
Expand Down

0 comments on commit 39cf0ef

Please sign in to comment.