Skip to content

Commit

Permalink
Merge pull request #1 from ubsan/ptr-docs
Browse files Browse the repository at this point in the history
fix typos
  • Loading branch information
RalfJung committed Sep 11, 2018
2 parents bc809e0 + 78f5b68 commit c44e88c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libcore/intrinsics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/libcore/ptr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c44e88c

Please sign in to comment.