about summary refs log tree commit diff
path: root/src/libcore/rand.rs
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2012-06-03 07:34:52 -0700
committerNiko Matsakis <niko@alum.mit.edu>2012-06-06 18:36:54 -0700
commitb828df93f666494a9d79b91264a4ef953688d001 (patch)
treee7848f787cdbcdf3562555605ed1a8d075881f37 /src/libcore/rand.rs
parent3bc42d5661d7e41885ef192bc2f4a5b8410a79f2 (diff)
miscellaneous pure annotations and other small changes.
it seems that, to be truly useful, pure fns really need the
ability to modify their parameters.  alternatively, we could
rewrite the functions that modify their arguments to take/return.
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 26cf00bbcd1..71bd1025d1d 100644
--- a/src/libcore/rand.rs
+++ b/src/libcore/rand.rs
@@ -218,7 +218,7 @@ impl extensions for rng {
     }
 
     #[doc = "Shuffle a mutable vec in place"]
-    fn shuffle_mut<T>(&values: [mut T]) {
+    fn shuffle_mut<T>(&&values: [mut T]) {
         let mut i = values.len();
         while i >= 2u {
             // invariant: elements with index >= i have been locked in place.