Skip to content

Commit 1e56a38

Browse files
committed
Fixup SAFETY comment
1 parent 8a89f17 commit 1e56a38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/from_fn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ impl<T> Drop for Guard<'_, T> {
126126
fn drop(&mut self) {
127127
debug_assert!(self.initialized <= self.array_mut.len());
128128

129-
// SAFETY: the slice will only contain initialized items
129+
// SAFETY: the loop only iterates over initialized items
130130
unsafe {
131131
let p: *mut T = self.array_mut.as_mut_ptr().cast();
132132

0 commit comments

Comments
 (0)