Skip to content

Commit

Permalink
docs: fix outdated comment
Browse files Browse the repository at this point in the history
  • Loading branch information
henryhchchc committed Sep 27, 2024
1 parent 30ebccf commit 869e967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ impl<K, V> Cache<K, V> {
Ok(it) => it,
Err(poison_err) => poison_err.into_inner(),
};
// It is possible that the class is loaded before we get the write lock.
// It is possible that the item is added to the cache before we get the write lock.
// Therefore, we need to check the cache again.
let item_box = if let Some(b) = cache.get(key) {
b
Expand Down

0 comments on commit 869e967

Please sign in to comment.