doc: when => while

This commit is contained in:
Joonas Koivunen
2023-08-29 11:59:24 +03:00
parent 59b5a55dbf
commit ffe0f90083

View File

@@ -584,8 +584,8 @@ impl LayerInner {
);
Ok(if self.wanted_evicted.load(Ordering::Acquire) {
// because we reset wanted_evictness earlier, this most likely means when we were downloading someone
// wanted to evict this layer.
// because we reset wanted_evictness earlier, this most likely means while we were
// downloading someone wanted to evict this layer.
ResidentOrWantedEvicted::WantedEvicted(Arc::downgrade(&res))
} else {
ResidentOrWantedEvicted::Resident(res.clone())