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:
Robert Bamler 2019-01-26 20:26:38 -08:00 committed by GitHub
parent e3270c6f47
commit 14e27f567a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.
///