Skip to content

Commit b9b8249

Browse files
committed
fix tidy checks
1 parent f1c1fc2 commit b9b8249

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
@@ -1165,7 +1165,7 @@ impl<'a, T: ?Sized + fmt::Display> fmt::Display for RefMut<'a, T> {
11651165
/// mutated, and that `&mut T` is unique. When building abstractions like `Cell`, `RefCell`,
11661166
/// `Mutex`, etc, you need to turn these optimizations off. `UnsafeCell` is the only legal way
11671167
/// to do this. When `UnsafeCell<T>` _itself_ is immutably aliased, it is still safe to obtain
1168-
/// a mutable reference to its _interior_ and/or to mutate the interior. However, it is up to
1168+
/// a mutable reference to its _interior_ and/or to mutate the interior. However, it is up to
11691169
/// the abstraction designer to ensure that no two mutable references obtained this way are active
11701170
/// at the same time, there are no active immutable reference when a mutable reference is obtained
11711171
/// from the cell, and that there are no active mutable references or mutations when an immutable
@@ -1243,7 +1243,7 @@ impl<T: ?Sized> UnsafeCell<T> {
12431243
/// This can be cast to a pointer of any kind.
12441244
/// Ensure that the access is unique (no active references, mutable or not)
12451245
/// when casting to `&mut T`, and ensure that there are no mutations
1246-
/// or mutable aliases going on when casting to `&T`
1246+
/// or mutable aliases going on when casting to `&T`
12471247
///
12481248
/// # Examples
12491249
///

0 commit comments

Comments
 (0)