Skip to content

Commit 0d80b2a

Browse files
author
Nick Hamann
committed
docs: Improve descriptions for some methods in core::cell.
1 parent c3d60ab commit 0d80b2a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libcore/cell.rs

+4-4
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)