Permalink
Browse files

Docs: Rename `result` -> `foo` (#11210)

  • Loading branch information...
OmgImAlexis authored and nzakas committed Jan 25, 2019
1 parent faf3c4e commit c464e2744ec76e7e9c6c5af0f6162c92187f1ece
Showing with 2 additions and 2 deletions.
  1. +2 −2 docs/rules/no-async-promise-executor.md
@@ -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);
@@ -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);

0 comments on commit c464e27

Please sign in to comment.