diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2012-06-03 07:34:52 -0700 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2012-06-06 18:36:54 -0700 |
| commit | b828df93f666494a9d79b91264a4ef953688d001 (patch) | |
| tree | e7848f787cdbcdf3562555605ed1a8d075881f37 /src/libcore/rand.rs | |
| parent | 3bc42d5661d7e41885ef192bc2f4a5b8410a79f2 (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.rs | 2 |
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. |
