Skip to content

Commit

Permalink
docs: Fixed typo in code comment (#15812)
Browse files Browse the repository at this point in the history
  • Loading branch information
AddisonG committed Apr 27, 2022
1 parent 36503ec commit 9ecd42f
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 `x + (b ?? c)`:
// One might think this would evaluate as `a + (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 9ecd42f

Please sign in to comment.