about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorIvan Tham <pickfire@riseup.net>2020-07-08 12:44:43 +0800
committerGitHub <noreply@github.com>2020-07-08 12:44:43 +0800
commit7bc85e29c94084a5b24af4b38a6d9dd7f9177f06 (patch)
tree059a5225ad1c6dbd5f5031f9df45892c693b74f6 /src/liballoc
parent8ac1525e091d3db28e67adcbbd6db1e1deaa37fb (diff)
Liballoc use vec instead of vector
Keep congruency with other parts, full word vector is rarely used.
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/slice.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/liballoc/slice.rs b/src/liballoc/slice.rs
index d7dc2174d66..3dbe2442866 100644
--- a/src/liballoc/slice.rs
+++ b/src/liballoc/slice.rs
@@ -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
     }
 }