Skip to content

Commit

Permalink
docs: fix examples (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
wellwelwel committed Aug 27, 2024
1 parent d716377 commit ba5b775
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ const entries = [...LRU.entries()];
Iterates over each key-value pair in the cache, from most recent to least recent.

```ts
LRU.forEach((key, value) => {
LRU.forEach((value, key) => {
// do something
});
```
Expand All @@ -224,7 +224,7 @@ The benchmark is performed by comparing `1,000,000` runs through a maximum cache
quick-lru: 401318.80µs
```

- See detailed results and how the tests are run and compared in the [benchmark](https://github.com/wellwelwel/lru.min/tree/main/benchmark) directory.
- See detailed results and how the tests are run and compared in the [**benchmark**](https://github.com/wellwelwel/lru.min/tree/main/benchmark) directory.

---

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lru.min",
"version": "0.3.1",
"version": "0.3.2",
"description": "🔥 An extremely fast and efficient LRU cache for JavaScript (Browser compatible) — 6.7KB.",
"main": "./lib/index.js",
"module": "./lib/index.mjs",
Expand Down

0 comments on commit ba5b775

Please sign in to comment.