Skip to content

Commit fcce764

Browse files
authored
Rollup merge of rust-lang#74142 - pickfire:patch-1, r=dtolnay
Liballoc use vec instead of vector Keep congruency with other parts, full word vector is rarely used.
2 parents 7e36657 + 7bc85e2 commit fcce764

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/liballoc/slice.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ mod hack {
156156
where
157157
T: Clone,
158158
{
159-
let mut vector = Vec::with_capacity(s.len());
160-
vector.extend_from_slice(s);
161-
vector
159+
let mut vec = Vec::with_capacity(s.len());
160+
vec.extend_from_slice(s);
161+
vec
162162
}
163163
}
164164

0 commit comments

Comments
 (0)