Skip to content

Commit

Permalink
Rename result -> foo
Browse files Browse the repository at this point in the history
  • Loading branch information
OmgImAlexis committed Dec 26, 2018
1 parent de79f10 commit 98375cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/rules/no-async-promise-executor.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ This rule aims to disallow async Promise executor functions.
Examples of **incorrect** code for this rule:

```js
const result = new Promise(async (resolve, reject) => {
const foo = new Promise(async (resolve, reject) => {
readFile('foo.txt', function(err, result) {
if (err) {
reject(err);
Expand All @@ -44,7 +44,7 @@ const result = new Promise(async (resolve, reject) => {
Examples of **correct** code for this rule:

```js
const result = new Promise((resolve, reject) => {
const foo = new Promise((resolve, reject) => {
readFile('foo.txt', function(err, result) {
if (err) {
reject(err);
Expand Down

0 comments on commit 98375cd

Please sign in to comment.