Skip to content

Commit 7cd3f4d

Browse files
mikeritegnieto
mikerite
andauthored
Fix lint doc
Co-Authored-By: gnieto <[email protected]>
1 parent b38ed6b commit 7cd3f4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/slow_vector_initialization.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use crate::rustc_errors::{Applicability};
2222
/// **What it does:** Checks slow zero-filled vector initialization
2323
///
2424
/// **Why is this bad?** This structures are non-idiomatic and less efficient than simply using
25-
/// `vec![len; 0]`.
25+
/// `vec![0; len]`.
2626
///
2727
/// **Known problems:** None.
2828
///

0 commit comments

Comments
 (0)