Skip to content

Commit 33d5d2e

Browse files
authored
Fix outdated comment
Comment referenced NoDrop which is no longer used.
1 parent fc6664c commit 33d5d2e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,7 @@ impl<A: Array> Drop for ArrayVec<A> {
8181
fn drop(&mut self) {
8282
self.clear();
8383

84-
// NoDrop inhibits array's drop
85-
// panic safety: NoDrop::drop will trigger on panic, so the inner
86-
// array will not drop even after panic.
84+
// MaybeUninit inhibits array's drop
8785
}
8886
}
8987

0 commit comments

Comments
 (0)