Skip to content

Commit

Permalink
Docs: fix example for require-atomic-updates (#14562)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjermanovic committed May 4, 2021
1 parent 388eb7e commit 6791dec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/require-atomic-updates.md
Expand Up @@ -84,7 +84,7 @@ async function foo() {
}

function* bar() {
result += yield;
result = (yield) + result;

result = (yield somethingElse) + result;

Expand Down

0 comments on commit 6791dec

Please sign in to comment.