Skip to content

Commit 0f49129

Browse files
authored
Fix typo
`accomodate` -> `accommodate`
1 parent a7d98c7 commit 0f49129

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/ops/deref.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
/// Implementing `Deref` for smart pointers makes accessing the data behind them
1919
/// convenient, which is why they implement `Deref`. On the other hand, the
2020
/// rules regarding `Deref` and [`DerefMut`] were designed specifically to
21-
/// accomodate smart pointers. Because of this, **`Deref` should only be
21+
/// accommodate smart pointers. Because of this, **`Deref` should only be
2222
/// implemented for smart pointers** to avoid confusion.
2323
///
2424
/// For similar reasons, **this trait should never fail**. Failure during
@@ -103,7 +103,7 @@ impl<'a, T: ?Sized> Deref for &'a mut T {
103103
/// Implementing `DerefMut` for smart pointers makes mutating the data behind
104104
/// them convenient, which is why they implement `DerefMut`. On the other hand,
105105
/// the rules regarding [`Deref`] and `DerefMut` were designed specifically to
106-
/// accomodate smart pointers. Because of this, **`DerefMut` should only be
106+
/// accommodate smart pointers. Because of this, **`DerefMut` should only be
107107
/// implemented for smart pointers** to avoid confusion.
108108
///
109109
/// For similar reasons, **this trait should never fail**. Failure during

0 commit comments

Comments
 (0)