Skip to content

Commit

Permalink
fix few typos in README.md
Browse files Browse the repository at this point in the history
PR-URL: isaacs#337
Credit: @zabdalimov
Close: isaacs#337
Reviewed-by: @isaacs
  • Loading branch information
zabdalimov authored and isaacs committed Jun 27, 2024
1 parent 200c622 commit a7868fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ will of course only have an effect on subsequent method calls.
The maximum number of items that remain in the cache (assuming no
TTL pruning or explicit deletions). Note that fewer items may be
stored if size calculation is used, and `maxSize` is exceeded.
This must be a positive finite intger.
This must be a positive finite integer.

At least one of `max`, `maxSize`, or `TTL` is required. This
must be a positive integer if set.
Expand Down Expand Up @@ -700,7 +700,7 @@ If you call `fetch()` multiple times with the same key value,
then every call after the first will resolve on the same
promise<sup>1</sup>,
_even if they have different settings that would otherwise change
the behvavior of the fetch_, such as `noDeleteOnFetchRejection`
the behavior of the fetch_, such as `noDeleteOnFetchRejection`
or `ignoreFetchAbort`.

In most cases, this is not a problem (in fact, only fetching
Expand Down Expand Up @@ -1066,7 +1066,7 @@ This cache never stores undefined values, as `undefined` is used
internally in a few places to indicate that a key is not in the
cache.

You may call `cache.set(key, undefined)`, but this is just an
You may call `cache.set(key, undefined)`, but this is just
an alias for `cache.delete(key)`. Note that this has the effect
that `cache.has(key)` will return _false_ after setting it to
undefined.
Expand Down

0 comments on commit a7868fc

Please sign in to comment.