Remove mention of .push_str(s) being faster

For the `.push_str(str.chars())` case the compiler will inline `push_str` and
call `extend_from_slice` on the underlying vector, so this isn't actually
faster.
This commit is contained in:
Phil Turnbull 2016-11-20 11:22:22 -05:00
parent e9f3911899
commit 8705f3d11c

View file

@ -493,7 +493,7 @@ declare_lint! {
/// **What it does:** Checks for the use of `.extend(s.chars())` where s is a
/// `&str` or `String`.
///
/// **Why is this bad?** `.push_str(s)` is clearer and faster
/// **Why is this bad?** `.push_str(s)` is clearer
///
/// **Known problems:** None.
///