Something along the lines of `0..=vec.len()` is probably a mistake and most likely should be `0..vec.len()`.