Skip to content

Commit d83e8be

Browse files
JachymPuttaarthurprs
authored andcommitted
fix: minor readme spelling, example usage
1 parent d8d1b14 commit d83e8be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Lightweight and high performance concurrent cache optimized for low cache overhead.
88

99
* Small overhead compared to a concurrent hash table
10-
* Scan resistent and high hit rate caching policy
10+
* Scan resistant and high hit rate caching policy
1111
* User defined weight per item
1212
* Scales well with the number of threads
1313
* Atomic operations with `get_or_insert` and `get_value_or_guard` functions
@@ -31,7 +31,7 @@ Basic usage
3131
use quick_cache::unsync::Cache;
3232

3333
fn main() {
34-
let cache = Cache::new(5);
34+
let mut cache = Cache::new(5);
3535
cache.insert("square", "blue");
3636
cache.insert("circle", "black");
3737
assert_eq!(*cache.get(&"square").unwrap(), "blue");

0 commit comments

Comments
 (0)