Skip to content

Commit ad743fb

Browse files
committed
Update FIFO policy documentation for clarity
- Adjusted comments in the FIFO policy documentation to improve readability and consistency in the representation of cache structure. - Ensured that the layout of the cache and insertion order is clear and accurately reflects the intended design.
1 parent 1e1f15e commit ad743fb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/policy/fifo.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
//! │ FifoCache<K, V> │
1212
//! │ │
1313
//! │ ┌────────────────────────────────────────────────────────────────────┐ │
14-
//! │ │ cache: HashMap<K, Arc<V>> │ │
14+
//! │ │ cache: HashMap<K, Arc<V>> │ │
1515
//! │ │ │ │
1616
//! │ │ ┌─────────────┬────────────────────────────────────────────────┐ │ │
17-
//! │ │ │ K │ Arc<V> │ │ │
17+
//! │ │ │ K │ Arc<V> │ │ │
1818
//! │ │ ├─────────────┼────────────────────────────────────────────────┤ │ │
1919
//! │ │ │ Arc(key1) │ Arc(value1) │ │ │
2020
//! │ │ │ Arc(key2) │ Arc(value2) │ │ │
@@ -25,7 +25,7 @@
2525
//! │ └────────────────────────────────────────────────────────────────────┘ │
2626
//! │ │
2727
//! │ ┌────────────────────────────────────────────────────────────────────┐ │
28-
//! │ │ insertion_order: VecDeque<K> │ │
28+
//! │ │ insertion_order: VecDeque<K> │ │
2929
//! │ │ │ │
3030
//! │ │ front ──► [Arc(key1)] ─ [Arc(key2)] ─ [Arc(key3)] ◄── back │ │
3131
//! │ │ (oldest) (newest) │ │

0 commit comments

Comments
 (0)