From 78f5b6866efb2445b2b7ea306cb9660a94fb58f0 Mon Sep 17 00:00:00 2001 From: Nicole Mazzuca Date: Mon, 10 Sep 2018 22:30:30 -0700 Subject: [PATCH] fix typos --- src/libcore/intrinsics.rs | 2 +- src/libcore/ptr.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcore/intrinsics.rs b/src/libcore/intrinsics.rs index 659b7a23ed922..823678ec88020 100644 --- a/src/libcore/intrinsics.rs +++ b/src/libcore/intrinsics.rs @@ -1159,7 +1159,7 @@ extern "rust-intrinsic" { /// // At this point, using or dropping `v` results in undefined behavior. /// // drop(v); // ERROR /// - /// // Even leaking `v` "uses" it, and henc eis undefined behavior. + /// // Even leaking `v` "uses" it, and hence is undefined behavior. /// // mem::forget(v); // ERROR /// /// unsafe { diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs index 5c16c8acae596..defe3d807faeb 100644 --- a/src/libcore/ptr.rs +++ b/src/libcore/ptr.rs @@ -47,7 +47,7 @@ //! ## Alignment //! //! Valid raw pointers as defined above are not necessarily properly aligned (where -//! "proper" alignment is defind by the pointee type, i.e., `*const T` must be +//! "proper" alignment is defined by the pointee type, i.e., `*const T` must be //! aligned to `mem::align_of::()`). However, most functions require their //! arguments to be properly aligned, and will explicitly state //! this requirement in their documentation. Notable exceptions to this are