Skip to content

Commit

Permalink
Fix usage example (#35)
Browse files Browse the repository at this point in the history
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
  • Loading branch information
jonidelv and sindresorhus committed Feb 11, 2023
1 parent fdc74e4 commit 67f280c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.d.ts
Expand Up @@ -136,7 +136,7 @@ const delayedPromise = () => setTimeout(200);
await pTimeout(delayedPromise(), {
milliseconds: 50,
fallback: () => {
return pTimeout(delayedPromise(), 300);
return pTimeout(delayedPromise(), {milliseconds: 300});
}
});
```
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Expand Up @@ -86,7 +86,7 @@ const delayedPromise = () => setTimeout(200);
await pTimeout(delayedPromise(), {
milliseconds: 50,
fallback: () => {
return pTimeout(delayedPromise(), 300);
return pTimeout(delayedPromise(), {milliseconds: 300});
},
});
```
Expand Down

0 comments on commit 67f280c

Please sign in to comment.