Skip to content

Commit 664e456

Browse files
committed
Add suggestions from lcnr
1 parent 94ec272 commit 664e456

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/array/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -407,11 +407,11 @@ impl<T, const N: usize> [T; N] {
407407
dst.write(f(src));
408408
guard.initialized += 1;
409409
}
410-
// FIXME convert to crate::mem::transmute when works with generics
410+
// FIXME: Convert to crate::mem::transmute once it works with generics.
411411
// unsafe { crate::mem::transmute::<[MaybeUninit<U>; N], [U; N]>(dst) }
412412
crate::mem::forget(guard);
413413
// SAFETY: At this point we've properly initialized the whole array
414-
// and we just need to cast it to the correct type
414+
// and we just need to cast it to the correct type.
415415
unsafe { (&mut dst as *mut _ as *mut [U; N]).read() }
416416
}
417417
}

0 commit comments

Comments
 (0)