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:
parent
e9f3911899
commit
8705f3d11c
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue