about summary refs log tree commit diff
path: root/src/docs/bool_comparison.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/docs/bool_comparison.txt')
-rw-r--r--src/docs/bool_comparison.txt18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/docs/bool_comparison.txt b/src/docs/bool_comparison.txt
deleted file mode 100644
index 0996f60cec4..00000000000
--- a/src/docs/bool_comparison.txt
+++ /dev/null
@@ -1,18 +0,0 @@
-### What it does
-Checks for expressions of the form `x == true`,
-`x != true` and order comparisons such as `x < true` (or vice versa) and
-suggest using the variable directly.
-
-### Why is this bad?
-Unnecessary code.
-
-### Example
-```
-if x == true {}
-if y == false {}
-```
-use `x` directly:
-```
-if x {}
-if !y {}
-```
\ No newline at end of file