We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36503ec commit 9ecd42fCopy full SHA for 9ecd42f
1 file changed
docs/src/rules/no-constant-binary-expression.md
@@ -12,7 +12,7 @@ Comparisons which will always evaluate to true or false and logical expressions
12
These errors are especially common in complex expressions where operator precedence is easy to misjudge. For example:
13
14
```js
15
-// One might think this would evaluate as `x + (b ?? c)`:
+// One might think this would evaluate as `a + (b ?? c)`:
16
const x = a + b ?? c;
17
18
// But it actually evaluates as `(a + b) ?? c`. Since `a + b` can never be null,
0 commit comments