Skip to content

Commit 69b2a74

Browse files
committed
Update comment
1 parent 839e5e1 commit 69b2a74

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
@@ -209,7 +209,7 @@ func (c *Cache) Evict(key interface{}) (interface{}, bool) {
209209

210210
// CompareAndEvict evicts the key only if its value is deeply equal to old.
211211
//
212-
// This method is only safe if value is unique. If this is not the case,
212+
// This method is safe only if value is unique. If this is not the case,
213213
// such as when values are pooled then the user must make sure that this
214214
// method returns before putting the value back into pool in the presence
215215
// of concurrent writers for key where the new value originates from the pool.

0 commit comments

Comments
 (0)