Skip to content

Commit

Permalink
Liballoc use vec instead of vector
Browse files Browse the repository at this point in the history
Keep congruency with other parts, full word vector is rarely used.
  • Loading branch information
pickfire authored Jul 8, 2020
1 parent 8ac1525 commit 7bc85e2
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 7bc85e2

Please sign in to comment.