diff options
Diffstat (limited to 'src/tools/clippy/src/docs/range_zip_with_len.txt')
-rw-r--r-- | src/tools/clippy/src/docs/range_zip_with_len.txt | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/tools/clippy/src/docs/range_zip_with_len.txt b/src/tools/clippy/src/docs/range_zip_with_len.txt deleted file mode 100644 index 24c1efec7..000000000 --- a/src/tools/clippy/src/docs/range_zip_with_len.txt +++ /dev/null @@ -1,16 +0,0 @@ -### What it does -Checks for zipping a collection with the range of -`0.._.len()`. - -### Why is this bad? -The code is better expressed with `.enumerate()`. - -### Example -``` -let _ = x.iter().zip(0..x.len()); -``` - -Use instead: -``` -let _ = x.iter().enumerate(); -```
\ No newline at end of file |