Skip to content

Commit 0328b2a

Browse files
authored
Update mod.rs
1 parent a0c757f commit 0328b2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/src/vec/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2033,7 +2033,7 @@ impl<T, A: Allocator> Vec<T, A> {
20332033
#[track_caller]
20342034
pub fn insert(&mut self, index: usize, element: T) {
20352035
if intrinsics::unlikely(self.insert_mut(index, element).is_none()) {
2036-
panic!("insertion index (is {index}) should be <= len (is {len})", index, self.len())
2036+
panic!("insertion index (is {index}) should be <= len (is {})", self.len())
20372037
};
20382038
}
20392039

0 commit comments

Comments
 (0)