]> git.lizzy.rs Git - rust.git/blob - src/docs/identity_op.txt
Auto merge of #9425 - kraktus:patch-1, r=xFrednet
[rust.git] / src / docs / identity_op.txt
1 ### What it does
2 Checks for identity operations, e.g., `x + 0`.
3
4 ### Why is this bad?
5 This code can be removed without changing the
6 meaning. So it just obscures what's going on. Delete it mercilessly.
7
8 ### Example
9 ```
10 x / 1 + 0 * 1 - 0 | 0;
11 ```