Skip to content

Commit

Permalink
Docs: add a note for no-unused-expressions (fixes #11169) (#11192)
Browse files Browse the repository at this point in the history
* Docs: add a note for no-unused-expressions (fixes #11169)

* Docs: polish no-unused-expressions
  • Loading branch information
g-plane authored and platinumazure committed Dec 22, 2018
1 parent 88f99d3 commit 1009304
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/no-unused-expressions.md
Expand Up @@ -2,7 +2,7 @@

An unused expression which has no effect on the state of the program indicates a logic error.

For example, `n + 1;` is not a syntax error, but it might be a typing mistake where a programmer meant an assignment statement `n += 1;` instead.
For example, `n + 1;` is not a syntax error, but it might be a typing mistake where a programmer meant an assignment statement `n += 1;` instead. Sometimes, such unused expressions may be eliminated by some build tools in production environment, which possibly breaks application logic.

## Rule Details

Expand Down

0 comments on commit 1009304

Please sign in to comment.