Skip to content

Commit 19b0847

Browse files
committed
Update comment
1 parent a81981c commit 19b0847

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cache.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ func (c *Cache) Range(f func(key, value interface{}) bool) {
229229
// otherwise it is the insertion order with eldest first by default.
230230
//
231231
// It is not safe to use OrderedRange concurrently with any other method
232-
// except Get or a deadlock may occur.
232+
// except Exists and Get or a deadlock may occur.
233233
func (c *Cache) OrderedRange(f func(key, value interface{}) bool) {
234234
c.stopLoop <- struct{}{}
235235
c.wg.Wait()

0 commit comments

Comments
 (0)