File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1047,15 +1047,15 @@ impl<T: ?Sized> DerefMut for ManuallyDrop<T> {
10471047///
10481048/// let x: &i32 = mem::zeroed(); // undefined behavior!
10491049/// ```
1050- /// This is exploitet by the compiler for various optimizations, such as eliding
1050+ /// This is exploited by the compiler for various optimizations, such as eliding
10511051/// run-time checks and optimizing `enum` layout.
10521052///
10531053/// Not initializing memory at all (instead of 0-initializing it) causes the same
10541054/// issue: after all, the initial value of the variable might just happen to be
10551055/// one that violates the invariant.
10561056///
10571057/// `MaybeUninit` serves to enable unsafe code to deal with uninitialized data:
1058- /// it is a signal to the compiler indicating that the data here may *not*
1058+ /// it is a signal to the compiler indicating that the data here might *not*
10591059/// be initialized:
10601060/// ```rust
10611061/// use std::mem::MaybeUninit;
You can’t perform that action at this time.
0 commit comments