Skip to content

Commit 9ecd42f

Browse files
authored
docs: Fixed typo in code comment (#15812)
1 parent 36503ec commit 9ecd42f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/src/rules/no-constant-binary-expression.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Comparisons which will always evaluate to true or false and logical expressions
1212
These errors are especially common in complex expressions where operator precedence is easy to misjudge. For example:
1313

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

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

0 commit comments

Comments
 (0)