diff options
| author | Maxim Nazarenko <nz.phone@mail.ru> | 2018-03-08 23:16:31 +0200 |
|---|---|---|
| committer | Maxim Nazarenko <nz.phone@mail.ru> | 2018-03-08 23:16:31 +0200 |
| commit | fbcd2f5a6a23c48416e6a948d8733f1c225acab3 (patch) | |
| tree | fb295af96f319cc5340300555867b67e428d8524 | |
| parent | fe557eee7de236e767a81a123c5de9b52d5e9a2a (diff) | |
| download | rust-fbcd2f5a6a23c48416e6a948d8733f1c225acab3.tar.gz rust-fbcd2f5a6a23c48416e6a948d8733f1c225acab3.zip | |
tidy. Again
| -rw-r--r-- | src/libcore/cell.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/cell.rs b/src/libcore/cell.rs index 61b0aead22f..98f08676722 100644 --- a/src/libcore/cell.rs +++ b/src/libcore/cell.rs @@ -1167,7 +1167,7 @@ impl<'a, T: ?Sized + fmt::Display> fmt::Display for RefMut<'a, T> { /// feature to work around this restriction. All other types that allow internal mutability, such as /// `Cell<T>` and `RefCell<T>` use `UnsafeCell` to wrap their internal data. /// -/// The `UnsafeCell` API itself is technically very simple: it gives you a raw pointer `*mut T` to +/// The `UnsafeCell` API itself is technically very simple: it gives you a raw pointer `*mut T` to /// its contents. It is up to _you_ as the abstraction designer to use that raw pointer correctly. /// /// The precise Rust aliasing rules are somewhat in flux, but the main points are not contentious: @@ -1182,7 +1182,7 @@ impl<'a, T: ?Sized + fmt::Display> fmt::Display for RefMut<'a, T> { /// that reference expires. /// /// - At all times, you must avoid data races, meaning that if multiple threads have access to -/// the same `UnsafeCell`, then any writes must have a proper happens-before relation to all other +/// the same `UnsafeCell`, then any writes must have a proper happens-before relation to all other /// accesses (or use atomics). /// /// To assist with proper design, the following scenarios are explicitly declared legal |
