We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
slow_vector_initialization
1 parent e3270c6 commit 14e27f5Copy full SHA for 14e27f5
clippy_lints/src/slow_vector_initialization.rs
@@ -11,8 +11,8 @@ use syntax_pos::symbol::Symbol;
11
12
/// **What it does:** Checks slow zero-filled vector initialization
13
///
14
-/// **Why is this bad?** This structures are non-idiomatic and less efficient than simply using
15
-/// `vec![len; 0]`.
+/// **Why is this bad?** These structures are non-idiomatic and less efficient than simply using
+/// `vec![0; len]`.
16
17
/// **Known problems:** None.
18
0 commit comments