Skip to content

Commit

Permalink
chore: correct typos docs (#12667)
Browse files Browse the repository at this point in the history
**Creats - Creates** 2x

---------

Co-authored-by: Akhilesh Singhania <[email protected]>
  • Loading branch information
futreall and akhi3030 authored Jan 7, 2025
1 parent b2fb586 commit b24ebce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion utils/near-cache/src/cell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<K, V>::new(NonZeroUsize::new(cap).unwrap())) }
}
Expand Down
2 changes: 1 addition & 1 deletion utils/near-cache/src/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<K, V>::new(NonZeroUsize::new(cap).unwrap())) }
}
Expand Down

0 comments on commit b24ebce

Please sign in to comment.