Skip to content

Commit 7bc85e2

Browse files
authored
Liballoc use vec instead of vector
Keep congruency with other parts, full word vector is rarely used.
1 parent 8ac1525 commit 7bc85e2

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)