Skip to content

Commit

Permalink
Rollup merge of rust-lang#74142 - pickfire:patch-1, r=dtolnay
Browse files Browse the repository at this point in the history
Liballoc use vec instead of vector

Keep congruency with other parts, full word vector is rarely used.
  • Loading branch information
Manishearth authored Jul 8, 2020
2 parents 4057300 + 7bc85e2 commit bed5f7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/liballoc/slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ mod hack {
where
T: Clone,
{
let mut vector = Vec::with_capacity(s.len());
vector.extend_from_slice(s);
vector
let mut vec = Vec::with_capacity(s.len());
vec.extend_from_slice(s);
vec
}
}

Expand Down

0 comments on commit bed5f7d

Please sign in to comment.