Skip to content

Commit

Permalink
Docs: Rename result -> foo (#11210)
Browse files Browse the repository at this point in the history
  • Loading branch information
OmgImAlexis authored and nzakas committed Jan 25, 2019
1 parent faf3c4e commit c464e27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/rules/no-async-promise-executor.md
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 c464e27

Please sign in to comment.