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