about summary refs log tree commit diff
path: root/src/docs/vec_resize_to_zero.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/docs/vec_resize_to_zero.txt')
-rw-r--r--src/docs/vec_resize_to_zero.txt15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/docs/vec_resize_to_zero.txt b/src/docs/vec_resize_to_zero.txt
deleted file mode 100644
index 0b92686772b..00000000000
--- a/src/docs/vec_resize_to_zero.txt
+++ /dev/null
@@ -1,15 +0,0 @@
-### What it does
-Finds occurrences of `Vec::resize(0, an_int)`
-
-### Why is this bad?
-This is probably an argument inversion mistake.
-
-### Example
-```
-vec!(1, 2, 3, 4, 5).resize(0, 5)
-```
-
-Use instead:
-```
-vec!(1, 2, 3, 4, 5).clear()
-```
\ No newline at end of file