Skip to content

Commit

Permalink
docs: add await keyword in correct example of no-floating-promises.md (
Browse files Browse the repository at this point in the history
…#7302)

Update no-floating-promises.md

Add await keyword in correct example
  • Loading branch information
hiroya-uga committed Jul 26, 2023
1 parent abc2b47 commit 695b9b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/eslint-plugin/docs/rules/no-floating-promises.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ returnsPromise().then(

Promise.reject('value').catch(() => {});

Promise.reject('value').finally(() => {});
await Promise.reject('value').finally(() => {});
```

## Options
Expand Down

0 comments on commit 695b9b4

Please sign in to comment.