Fix documentation for slow_vector_initialization
Change the recommended solution from `vec![len; 0]` to `vec![0; len]`. Also fix grammar.
This commit is contained in:
parent
e3270c6f47
commit
14e27f567a
@ -11,8 +11,8 @@ use syntax_pos::symbol::Symbol;
|
||||
|
||||
/// **What it does:** Checks slow zero-filled vector initialization
|
||||
///
|
||||
/// **Why is this bad?** This structures are non-idiomatic and less efficient than simply using
|
||||
/// `vec![len; 0]`.
|
||||
/// **Why is this bad?** These structures are non-idiomatic and less efficient than simply using
|
||||
/// `vec![0; len]`.
|
||||
///
|
||||
/// **Known problems:** None.
|
||||
///
|
||||
|
Loading…
x
Reference in New Issue
Block a user