diff --git a/utils/near-cache/src/cell.rs b/utils/near-cache/src/cell.rs index 1061b940172..e208a4669f9 100644 --- a/utils/near-cache/src/cell.rs +++ b/utils/near-cache/src/cell.rs @@ -15,7 +15,7 @@ where K: Hash + Eq, V: Clone, { - /// Creats a new `LRU` cache that holds at most `cap` items. + /// Creates a new `LRU` cache that holds at most `cap` items. pub fn new(cap: usize) -> Self { Self { inner: RefCell::new(LruCache::::new(NonZeroUsize::new(cap).unwrap())) } } diff --git a/utils/near-cache/src/sync.rs b/utils/near-cache/src/sync.rs index 4b971c9a655..31a762ffca3 100644 --- a/utils/near-cache/src/sync.rs +++ b/utils/near-cache/src/sync.rs @@ -15,7 +15,7 @@ where K: Hash + Eq, V: Clone, { - /// Creats a new `LRU` cache that holds at most `cap` items. + /// Creates a new `LRU` cache that holds at most `cap` items. pub fn new(cap: usize) -> Self { Self { inner: Mutex::new(LruCache::::new(NonZeroUsize::new(cap).unwrap())) } }