about summary refs log tree commit diff
path: root/src/libcore/flate.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcore/flate.rs')
-rw-r--r--src/libcore/flate.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/flate.rs b/src/libcore/flate.rs
index b75894e0c1b..6b4c93949e5 100644
--- a/src/libcore/flate.rs
+++ b/src/libcore/flate.rs
@@ -71,12 +71,12 @@ fn test_flate_round_trip() {
     let r = rand::Rng();
     let mut words = ~[];
     for 20.times {
-        vec::push(words, r.gen_bytes(r.gen_uint_range(1, 10)));
+        words.push(r.gen_bytes(r.gen_uint_range(1, 10)));
     }
     for 20.times {
         let mut in = ~[];
         for 2000.times {
-            vec::push_all(in, r.choose(words));
+            in.push_all(r.choose(words));
         }
         debug!("de/inflate of %u bytes of random word-sequences",
                in.len());