File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -282,7 +282,7 @@ impl<T: ?Sized> DerefMut for &mut T {
282282/// FIXME(deref_patterns): The precise semantics are undecided; the rough idea is that
283283/// successive calls to `deref`/`deref_mut` without intermediate mutation should be
284284/// idempotent, in the sense that they return the same value as far as pattern-matching
285- /// is concerned. Calls to `deref`/`deref_mut`` must leave the pointer itself likewise
285+ /// is concerned. Calls to `deref`/`deref_mut` must leave the pointer itself likewise
286286/// unchanged.
287287#[ unstable( feature = "deref_pure_trait" , issue = "87121" ) ]
288288#[ lang = "deref_pure" ]
Original file line number Diff line number Diff line change @@ -786,7 +786,7 @@ where
786786///
787787/// The caller must also ensure that the memory the pointer (non-transitively) points to is never
788788/// written to (except inside an `UnsafeCell`) using this pointer or any pointer derived from it. If
789- /// you need to mutate the pointee, use [`from_mut`]` . Specifically, to turn a mutable reference `m:
789+ /// you need to mutate the pointee, use [`from_mut`]. Specifically, to turn a mutable reference `m:
790790/// &mut T` into `*const T`, prefer `from_mut(m).cast_const()` to obtain a pointer that can later be
791791/// used for mutation.
792792///
You can’t perform that action at this time.
0 commit comments