Skip to content

Commit 78789ad

Browse files
committed
and some more tidy checks
1 parent ff6754c commit 78789ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/cell.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,12 +1168,12 @@ impl<'a, T: ?Sized + fmt::Display> fmt::Display for RefMut<'a, T> {
11681168
/// a mutable reference to its interior and/or to mutate the interior. However, the abstraction
11691169
/// designer must ensure that any active mutable references to the interior obtained this way does
11701170
/// not co-exist with other active references to the interior, either mutable or not. This is often
1171-
/// done via runtime checks. Naturally, several active immutable references to the interior can
1171+
/// done via runtime checks. Naturally, several active immutable references to the interior can
11721172
/// co-exits with each other (but not with a mutable reference).
11731173
///
11741174
/// To put it in other words, if a mutable reference to the contents is active, no other references
11751175
/// can be active at the same time, and if an immutable reference to the contents is active, then
1176-
/// only other immutable reference may be active.
1176+
/// only other immutable reference may be active.
11771177
///
11781178
/// Note that while mutating or mutably aliasing the contents of an `& UnsafeCell<T>` is
11791179
/// okay (provided you enforce the invariants some other way), it is still undefined behavior

0 commit comments

Comments
 (0)