X-Git-Url: https://git.ralfj.de/rust-101.git/blobdiff_plain/f5a79e8aaa07e56cf2dd8fe8438d96624dd84fbc..d9fc9a4d89d8e4950f43308318962d9179bd1177:/src/part06.rs?ds=sidebyside diff --git a/src/part06.rs b/src/part06.rs index e159ca5..e357d0e 100644 --- a/src/part06.rs +++ b/src/part06.rs @@ -25,7 +25,8 @@ impl BigInt { } } -// Now we can write `vec_min`. In order to make it type-check, we have make a deep copy of e. +// Now we can write `vec_min`. However, in order to make it type-check, we have to make a full (deep) copy of e +// by calling `clone()`. fn vec_min(v: &Vec) -> Option { let mut min: Option = None; for e in v {