diff options
| author | Lance John <rubyminer@foxmail.com> | 2017-11-02 20:07:22 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-02 20:07:22 +0800 |
| commit | 0f49129fd7bbae76875be0ab893e79d429023a31 (patch) | |
| tree | 71d8a969499744005fcd468c91d22e9dd83e635c /src/libcore/ops | |
| parent | a7d98c78377e5083d5add5d3ae8d26ffa938c005 (diff) | |
| download | rust-0f49129fd7bbae76875be0ab893e79d429023a31.tar.gz rust-0f49129fd7bbae76875be0ab893e79d429023a31.zip | |
Fix typo
`accomodate` -> `accommodate`
Diffstat (limited to 'src/libcore/ops')
| -rw-r--r-- | src/libcore/ops/deref.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/ops/deref.rs b/src/libcore/ops/deref.rs index 4cb6e8405f3..80c48c7b28e 100644 --- a/src/libcore/ops/deref.rs +++ b/src/libcore/ops/deref.rs @@ -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 @@ -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 |
