about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2019-02-04 11:11:39 +0100
committerRalf Jung <post@ralfj.de>2019-02-04 11:11:39 +0100
commit789b4d1a4f9a4c0cfbce51f0939b5ec322abca0c (patch)
treecc9bb1a4f3e29ba73244607595cff9f2c5951f9a /src/libcore
parentf8c7d8dc8e8f779e6468e83f79456ed1916a93d7 (diff)
downloadrust-789b4d1a4f9a4c0cfbce51f0939b5ec322abca0c.tar.gz
rust-789b4d1a4f9a4c0cfbce51f0939b5ec322abca0c.zip
typos
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/mem.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/mem.rs b/src/libcore/mem.rs
index 4712df1fa7c..68f985ce652 100644
--- a/src/libcore/mem.rs
+++ b/src/libcore/mem.rs
@@ -1047,7 +1047,7 @@ impl<T: ?Sized> DerefMut for ManuallyDrop<T> {
 ///
 /// let x: &i32 = mem::zeroed(); // undefined behavior!
 /// ```
-/// This is exploitet by the compiler for various optimizations, such as eliding
+/// This is exploited by the compiler for various optimizations, such as eliding
 /// run-time checks and optimizing `enum` layout.
 ///
 /// Not initializing memory at all (instead of 0-initializing it) causes the same
@@ -1055,7 +1055,7 @@ impl<T: ?Sized> DerefMut for ManuallyDrop<T> {
 /// one that violates the invariant.
 ///
 /// `MaybeUninit` serves to enable unsafe code to deal with uninitialized data:
-/// it is a signal to the compiler indicating that the data here may *not*
+/// it is a signal to the compiler indicating that the data here might *not*
 /// be initialized:
 /// ```rust
 /// use std::mem::MaybeUninit;