File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments