Skip to content

Commit b828df9

Browse files
committed
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.
1 parent 3bc42d5 commit b828df9

File tree

3 files changed

+122
-101
lines changed

3 files changed

+122
-101
lines changed

src/libcore/rand.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ impl extensions for rng {
218218
}
219219

220220
#[doc = "Shuffle a mutable vec in place"]
221-
fn shuffle_mut<T>(&values: [mut T]) {
221+
fn shuffle_mut<T>(&&values: [mut T]) {
222222
let mut i = values.len();
223223
while i >= 2u {
224224
// invariant: elements with index >= i have been locked in place.

0 commit comments

Comments
 (0)