Skip to content

Commit

Permalink
Rollup merge of rust-lang#45718 - Ljzn:patch-2, r=BurntSushi
Browse files Browse the repository at this point in the history
Fix typo

`accomodate` -> `accommodate`
  • Loading branch information
kennytm authored Nov 4, 2017
2 parents 2c29392 + 0f49129 commit ff00a5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libcore/ops/deref.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/// Implementing `Deref` for smart pointers makes accessing the data behind them
/// convenient, which is why they implement `Deref`. On the other hand, the
/// rules regarding `Deref` and [`DerefMut`] were designed specifically to
/// accomodate smart pointers. Because of this, **`Deref` should only be
/// accommodate smart pointers. Because of this, **`Deref` should only be
/// implemented for smart pointers** to avoid confusion.
///
/// For similar reasons, **this trait should never fail**. Failure during
Expand Down Expand Up @@ -103,7 +103,7 @@ impl<'a, T: ?Sized> Deref for &'a mut T {
/// Implementing `DerefMut` for smart pointers makes mutating the data behind
/// them convenient, which is why they implement `DerefMut`. On the other hand,
/// the rules regarding [`Deref`] and `DerefMut` were designed specifically to
/// accomodate smart pointers. Because of this, **`DerefMut` should only be
/// accommodate smart pointers. Because of this, **`DerefMut` should only be
/// implemented for smart pointers** to avoid confusion.
///
/// For similar reasons, **this trait should never fail**. Failure during
Expand Down

0 comments on commit ff00a5f

Please sign in to comment.