Merge pull request #1 from ubsan/ptr-docs

fix typos
This commit is contained in:
Ralf Jung 2018-09-11 18:07:24 +02:00 committed by GitHub
commit c44e88cc8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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.
/// // 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 {

View file

@ -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::<T>()`). However, most functions require their
//! arguments to be properly aligned, and will explicitly state
//! this requirement in their documentation. Notable exceptions to this are