Skip to content

Commit

Permalink
Revert "docs: Fixed typo in code comment (eslint#15812)"
Browse files Browse the repository at this point in the history
This reverts commit 36a1312.
  • Loading branch information
srijan-deepsource committed May 30, 2022
1 parent 0673624 commit 4a45543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/rules/no-constant-binary-expression.md
Expand Up @@ -12,7 +12,7 @@ Comparisons which will always evaluate to true or false and logical expressions
These errors are especially common in complex expressions where operator precedence is easy to misjudge. For example:

```js
// One might think this would evaluate as `a + (b ?? c)`:
// One might think this would evaluate as `x + (b ?? c)`:
const x = a + b ?? c;

// But it actually evaluates as `(a + b) ?? c`. Since `a + b` can never be null,
Expand Down

0 comments on commit 4a45543

Please sign in to comment.