about summary refs log tree commit diff
path: root/src/docs/shadow_reuse.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/docs/shadow_reuse.txt')
-rw-r--r--src/docs/shadow_reuse.txt20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/docs/shadow_reuse.txt b/src/docs/shadow_reuse.txt
deleted file mode 100644
index 9eb8e7ad164..00000000000
--- a/src/docs/shadow_reuse.txt
+++ /dev/null
@@ -1,20 +0,0 @@
-### What it does
-Checks for bindings that shadow other bindings already in
-scope, while reusing the original value.
-
-### Why is this bad?
-Not too much, in fact it's a common pattern in Rust
-code. Still, some argue that name shadowing like this hurts readability,
-because a value may be bound to different things depending on position in
-the code.
-
-### Example
-```
-let x = 2;
-let x = x + 1;
-```
-use different variable name:
-```
-let x = 2;
-let y = x + 1;
-```
\ No newline at end of file