1
Fork 0

fix typos

This commit is contained in:
Nicole Mazzuca 2018-09-10 22:30:30 -07:00
parent bc809e01ee
commit 78f5b6866e
2 changed files with 2 additions and 2 deletions

View file

@ -1159,7 +1159,7 @@ extern "rust-intrinsic" {
/// // At this point, using or dropping `v` results in undefined behavior. /// // At this point, using or dropping `v` results in undefined behavior.
/// // drop(v); // ERROR /// // 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 /// // mem::forget(v); // ERROR
/// ///
/// unsafe { /// unsafe {

View file

@ -47,7 +47,7 @@
//! ## Alignment //! ## Alignment
//! //!
//! Valid raw pointers as defined above are not necessarily properly aligned (where //! 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::<T>()`). However, most functions require their //! aligned to `mem::align_of::<T>()`). However, most functions require their
//! arguments to be properly aligned, and will explicitly state //! arguments to be properly aligned, and will explicitly state
//! this requirement in their documentation. Notable exceptions to this are //! this requirement in their documentation. Notable exceptions to this are