about summary refs log tree commit diff
path: root/src/libstd/par.rs
diff options
context:
space:
mode:
authorEric Holk <eric.holk@gmail.com>2012-05-30 16:31:16 -0700
committerEric Holk <eric.holk@gmail.com>2012-05-30 17:39:53 -0700
commitad292a8c73a0cceddfa9618a4d6eea577897bae8 (patch)
tree7097251eb5006fa4f3a83822f6eb154f9273b031 /src/libstd/par.rs
parent09a32aedb5ae56cabac371ba9af7cce631becf51 (diff)
downloadrust-ad292a8c73a0cceddfa9618a4d6eea577897bae8.tar.gz
rust-ad292a8c73a0cceddfa9618a4d6eea577897bae8.zip
Add xorshift to core::rand, which gave a 3x speedup for graph generation in the bfs code. Also, remove trailing white space.
Diffstat (limited to 'src/libstd/par.rs')
-rw-r--r--src/libstd/par.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/par.rs b/src/libstd/par.rs
index e3e5d3d815a..5db344713a7 100644
--- a/src/libstd/par.rs
+++ b/src/libstd/par.rs
@@ -129,7 +129,7 @@ fn alli<A: copy send>(xs: [A], f: fn~(uint, A) -> bool) -> bool {
 
 #[doc="Returns true if the function holds for any elements in the vector."]
 fn any<A: copy send>(xs: [A], f: fn~(A) -> bool) -> bool {
-    vec::any(map_slices(xs) {|| 
+    vec::any(map_slices(xs) {||
         fn~(_base : uint, slice: [const A]/&, copy f) -> bool {
             vec::any(slice, f)
         }