Skip to content

Commit 55be283

Browse files
committed
and again :(
1 parent fbcd2f5 commit 55be283

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libcore/cell.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1176,10 +1176,10 @@ impl<'a, T: ?Sized + fmt::Display> fmt::Display for RefMut<'a, T> {
11761176
/// is accessible by safe code (for example, because you returned it), then you must not access
11771177
/// the data in any way that contradicts that reference for the remainder of `'a`. For example, that
11781178
/// means that if you take the `*mut T` from an `UnsafeCell<T>` and case it to an `&T`, then until
1179-
/// that reference's lifetime expires, the data in `T` must remain immutable (modulo any
1179+
/// that reference's lifetime expires, the data in `T` must remain immutable (modulo any
11801180
/// `UnsafeCell` data found within `T`, of course). Similarly, if you create an `&mut T` reference
11811181
/// that is released to safe code, then you must not access the data within the `UnsafeCell` until
1182-
/// that reference expires.
1182+
/// that reference expires.
11831183
///
11841184
/// - At all times, you must avoid data races, meaning that if multiple threads have access to
11851185
/// the same `UnsafeCell`, then any writes must have a proper happens-before relation to all other
@@ -1189,7 +1189,7 @@ impl<'a, T: ?Sized + fmt::Display> fmt::Display for RefMut<'a, T> {
11891189
/// for single-threaded code:
11901190
///
11911191
/// 1. A `&T` reference can be released to safe code and there it can co-exit with other `&T`
1192-
/// references, but not with a `&mut T`
1192+
/// references, but not with a `&mut T`
11931193
///
11941194
/// 2. A `&mut T` reference may be released to safe code, provided neither other `&mut T` nor `&T`
11951195
/// co-exist with it. A `&mut T` must always be unique.

0 commit comments

Comments
 (0)