Skip to content

Commit 5673536

Browse files
fix typos
Co-authored-by: Ralf Jung <[email protected]>
1 parent 1610447 commit 5673536

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/cell.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1827,8 +1827,8 @@ impl<T: ?Sized + fmt::Display> fmt::Display for RefMut<'_, T> {
18271827
/// order to avoid its interior mutability property from spreading from `T` into the `Outer` type,
18281828
/// thus this can cause distortions in the type size in these cases.
18291829
///
1830-
/// Note that it is still only valid to obtain a `*mut T` pointer to the contents of a
1831-
/// _shared_ `UnsafeCell<T>` through [`.get()`] or [`.raw_get()`]. A `&mut T` reference
1830+
/// Note that the only valid way to obtain a `*mut T` pointer to the contents of a
1831+
/// _shared_ `UnsafeCell<T>` is through [`.get()`] or [`.raw_get()`]. A `&mut T` reference
18321832
/// can be obtained by either dereferencing this pointer or by calling [`.get_mut()`]
18331833
/// on an _exclusive_ `UnsafeCell<T>`. Even though `T` and `UnsafeCell<T>` have the
18341834
/// same memory layout, the following is not allowed and undefined behavior:

0 commit comments

Comments
 (0)