File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 18
18
/// Implementing `Deref` for smart pointers makes accessing the data behind them
19
19
/// convenient, which is why they implement `Deref`. On the other hand, the
20
20
/// 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
22
22
/// implemented for smart pointers** to avoid confusion.
23
23
///
24
24
/// For similar reasons, **this trait should never fail**. Failure during
@@ -103,7 +103,7 @@ impl<'a, T: ?Sized> Deref for &'a mut T {
103
103
/// Implementing `DerefMut` for smart pointers makes mutating the data behind
104
104
/// them convenient, which is why they implement `DerefMut`. On the other hand,
105
105
/// 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
107
107
/// implemented for smart pointers** to avoid confusion.
108
108
///
109
109
/// For similar reasons, **this trait should never fail**. Failure during
You can’t perform that action at this time.
0 commit comments