diff options
| author | Maxim Nazarenko <nz.phone@mail.ru> | 2018-02-27 23:34:38 +0200 |
|---|---|---|
| committer | Maxim Nazarenko <nz.phone@mail.ru> | 2018-02-27 23:34:38 +0200 |
| commit | ff6754c68ec293d46eb294f3b7efeca8300b2251 (patch) | |
| tree | ca2e9a9166d72100d0ddc31878aa1855c65add89 | |
| parent | 50f5ea919231b41b7d8ccb1023b4dc0fd6e6730d (diff) | |
| download | rust-ff6754c68ec293d46eb294f3b7efeca8300b2251.tar.gz rust-ff6754c68ec293d46eb294f3b7efeca8300b2251.zip | |
fix tidy checks
| -rw-r--r-- | src/libcore/cell.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/cell.rs b/src/libcore/cell.rs index b57667df991..6f18b8466a6 100644 --- a/src/libcore/cell.rs +++ b/src/libcore/cell.rs @@ -1166,12 +1166,12 @@ impl<'a, T: ?Sized + fmt::Display> fmt::Display for RefMut<'a, T> { /// `Mutex`, etc, you need to turn these optimizations off. `UnsafeCell` is the only legal way /// to do this. When `UnsafeCell<T>` itself is immutably aliased, it is still safe to obtain /// a mutable reference to its interior and/or to mutate the interior. However, the abstraction -/// designer must ensure that any active mutable references to the interior obtained this way does -/// not co-exist with other active references to the interior, either mutable or not. This is often +/// designer must ensure that any active mutable references to the interior obtained this way does +/// not co-exist with other active references to the interior, either mutable or not. This is often /// done via runtime checks. Naturally, several active immutable references to the interior can /// co-exits with each other (but not with a mutable reference). /// -/// To put it in other words, if a mutable reference to the contents is active, no other references +/// To put it in other words, if a mutable reference to the contents is active, no other references /// can be active at the same time, and if an immutable reference to the contents is active, then /// only other immutable reference may be active. /// |
