File tree 1 file changed +2
-2
lines changed
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> {
1047
1047
///
1048
1048
/// let x: &i32 = mem::zeroed(); // undefined behavior!
1049
1049
/// ```
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
1051
1051
/// run-time checks and optimizing `enum` layout.
1052
1052
///
1053
1053
/// Not initializing memory at all (instead of 0-initializing it) causes the same
1054
1054
/// issue: after all, the initial value of the variable might just happen to be
1055
1055
/// one that violates the invariant.
1056
1056
///
1057
1057
/// `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*
1059
1059
/// be initialized:
1060
1060
/// ```rust
1061
1061
/// use std::mem::MaybeUninit;
You can’t perform that action at this time.
0 commit comments