]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/src/docs/double_neg.txt
New upstream version 1.66.0+dfsg1
[rustc.git] / src / tools / clippy / src / docs / double_neg.txt
CommitLineData
f2b60f7d
FG
1### What it does
2Detects expressions of the form `--x`.
3
4### Why is this bad?
5It can mislead C/C++ programmers to think `x` was
6decremented.
7
8### Example
9```
10let mut x = 3;
11--x;
12```