From b24ebce33ea538d03ca86556101df8f3f9d31bad Mon Sep 17 00:00:00 2001 From: futreall <86553580+futreall@users.noreply.github.com> Date: Tue, 7 Jan 2025 15:27:42 +0200 Subject: [PATCH] chore: correct typos docs (#12667) **Creats - Creates** 2x --------- Co-authored-by: Akhilesh Singhania --- utils/near-cache/src/cell.rs | 2 +- utils/near-cache/src/sync.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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())) } }