Skip to content

Commit

Permalink
Fix typo in article
Browse files Browse the repository at this point in the history
Fixes #2095
  • Loading branch information
Chalarangelo committed Jan 6, 2025
1 parent dc760e6 commit 3658cca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ All you have to do is create a new promise using the `Promise()` constructor, an
```js
const resolveAfter = (value, delay) =>
new Promise(resolve => {
setTimeout(() => resolve(value, delay));
setTimeout(() => resolve(value), delay);
});

resolveAfter('Hello', 1000);
Expand Down

0 comments on commit 3658cca

Please sign in to comment.