about summary refs log tree commit diff
path: root/src/docs/short_circuit_statement.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/docs/short_circuit_statement.txt')
-rw-r--r--src/docs/short_circuit_statement.txt14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/docs/short_circuit_statement.txt b/src/docs/short_circuit_statement.txt
deleted file mode 100644
index 31492bed03d..00000000000
--- a/src/docs/short_circuit_statement.txt
+++ /dev/null
@@ -1,14 +0,0 @@
-### What it does
-Checks for the use of short circuit boolean conditions as
-a
-statement.
-
-### Why is this bad?
-Using a short circuit boolean condition as a statement
-may hide the fact that the second part is executed or not depending on the
-outcome of the first part.
-
-### Example
-```
-f() && g(); // We should write `if f() { g(); }`.
-```
\ No newline at end of file