some iterator tuning
[rust-101.git] / workspace / src / part06.rs
index 72883277ab6304aa4bd7ec0ff8d38b05dac7488a..15b55d25c1af07066b59699f7b19df48bb92216d 100644 (file)
@@ -25,6 +25,7 @@ impl BigInt {
 // Now we can write `vec_min`.
 fn vec_min(v: &Vec<BigInt>) -> Option<BigInt> {
     let mut min: Option<BigInt> = None;
+    // If `v` is a shared borrowed vector, then the default for iterating over it is to call `iter`, the iterator that borrows the elements.
     for e in v {
         unimplemented!()
     }