diff --git a/lib.rs b/lib.rs index 27bfe13..ed83a75 100644 --- a/lib.rs +++ b/lib.rs @@ -865,6 +865,8 @@ impl SmallVec { /// Insert multiple elements at position `index`, shifting all following elements toward the /// back. + /// + /// Note: when the iterator panics, this can leak memory. pub fn insert_many>(&mut self, index: usize, iterable: I) { let iter = iterable.into_iter(); if index == self.len() {