Skip to content

Commit db1914e

Browse files
committed
Rollup merge of rust-lang#25726 - nham:cell_docs, r=alexcrichton
Currently part of the description of the `into_inner` method of `UnsafeCell` seems backwards.
2 parents 0401617 + 0d80b2a commit db1914e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libcore/cell.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ impl<T:Copy> Cell<T> {
212212
}
213213
}
214214

215-
/// Gets a reference to the underlying `UnsafeCell`.
215+
/// Returns a reference to the underlying `UnsafeCell`.
216216
///
217217
/// # Unsafety
218218
///
@@ -439,7 +439,7 @@ impl<T: ?Sized> RefCell<T> {
439439
}
440440
}
441441

442-
/// Gets a reference to the underlying `UnsafeCell`.
442+
/// Returns a reference to the underlying `UnsafeCell`.
443443
///
444444
/// This can be used to circumvent `RefCell`'s safety checks.
445445
///
@@ -671,8 +671,8 @@ impl<T> UnsafeCell<T> {
671671
///
672672
/// # Unsafety
673673
///
674-
/// This function is unsafe because there is no guarantee that this or other threads are
675-
/// currently inspecting the inner value.
674+
/// This function is unsafe because this thread or another thread may currently be
675+
/// inspecting the inner value.
676676
///
677677
/// # Examples
678678
///

0 commit comments

Comments
 (0)