about summary refs log tree commit diff
path: root/src/libcore/rand.rs
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-06-26 13:55:56 -0700
committerBrian Anderson <banderson@mozilla.com>2012-06-30 16:01:49 -0700
commita3382b6f26e582210a3b649c9a71badaef0530bf (patch)
treebd30506542a14a132b09aae154417c7cc9312498 /src/libcore/rand.rs
parent8b2491160d71aa7a84ed822b85e9b3eff6097225 (diff)
Eliminate usages of old sugared call syntax
Diffstat (limited to 'src/libcore/rand.rs')
-rw-r--r--src/libcore/rand.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/rand.rs b/src/libcore/rand.rs
index ed4be4e9d64..1eb0983b7e4 100644
--- a/src/libcore/rand.rs
+++ b/src/libcore/rand.rs
@@ -152,7 +152,7 @@ impl extensions for rng {
 
     #[doc = "Return a random byte string of the specified length"]
     fn gen_bytes(len: uint) -> ~[u8] {
-        vec::from_fn(len) {|_i|
+        do vec::from_fn(len) {|_i|
             self.gen_u8()
         }
     }