about summary refs log tree commit diff
path: root/src/docs/redundant_pattern.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/docs/redundant_pattern.txt')
-rw-r--r--src/docs/redundant_pattern.txt22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/docs/redundant_pattern.txt b/src/docs/redundant_pattern.txt
deleted file mode 100644
index 45f6cfc8670..00000000000
--- a/src/docs/redundant_pattern.txt
+++ /dev/null
@@ -1,22 +0,0 @@
-### What it does
-Checks for patterns in the form `name @ _`.
-
-### Why is this bad?
-It's almost always more readable to just use direct
-bindings.
-
-### Example
-```
-match v {
-    Some(x) => (),
-    y @ _ => (),
-}
-```
-
-Use instead:
-```
-match v {
-    Some(x) => (),
-    y => (),
-}
-```
\ No newline at end of file