Skip to content

Commit 789b4d1

Browse files
committed
typos
1 parent f8c7d8d commit 789b4d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/mem.rs

+2-2
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)