summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/src/docs/no_effect.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/clippy/src/docs/no_effect.txt')
-rw-r--r--src/tools/clippy/src/docs/no_effect.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/tools/clippy/src/docs/no_effect.txt b/src/tools/clippy/src/docs/no_effect.txt
new file mode 100644
index 000000000..d4cc08fa8
--- /dev/null
+++ b/src/tools/clippy/src/docs/no_effect.txt
@@ -0,0 +1,12 @@
+### What it does
+Checks for statements which have no effect.
+
+### Why is this bad?
+Unlike dead code, these statements are actually
+executed. However, as they have no effect, all they do is make the code less
+readable.
+
+### Example
+```
+0;
+``` \ No newline at end of file