about summary refs log tree commit diff
path: root/src/libstd/rand
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-10-02 02:31:29 -0700
committerbors <bors@rust-lang.org>2013-10-02 02:31:29 -0700
commitd00c9269dce3a7925d7d0bf5edb64b3c6747c6af (patch)
tree2446c316e34164e1b0795fb909de8951d503fe20 /src/libstd/rand
parent97cd495aca946d088e103d364d3be34f2bfaf1e1 (diff)
parent4f67dcb24adb1e23f04e624fcbaf2328b82491b6 (diff)
downloadrust-d00c9269dce3a7925d7d0bf5edb64b3c6747c6af.tar.gz
rust-d00c9269dce3a7925d7d0bf5edb64b3c6747c6af.zip
auto merge of #9665 : alexcrichton/rust/snapshot, r=brson
Uses the new snapshots to kill the old `loop` and introduce the new `continue`.
Diffstat (limited to 'src/libstd/rand')
-rw-r--r--src/libstd/rand/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/rand/mod.rs b/src/libstd/rand/mod.rs
index 5a7708b7fb2..cc9e395e739 100644
--- a/src/libstd/rand/mod.rs
+++ b/src/libstd/rand/mod.rs
@@ -536,7 +536,7 @@ pub trait Rng {
         for (i, elem) in iter.enumerate() {
             if i < n {
                 reservoir.push(elem);
-                loop
+                continue
             }
 
             let k = self.gen_integer_range(0, i + 1);