File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ impl<T:Copy> Cell<T> {
212
212
}
213
213
}
214
214
215
- /// Gets a reference to the underlying `UnsafeCell`.
215
+ /// Returns a reference to the underlying `UnsafeCell`.
216
216
///
217
217
/// # Unsafety
218
218
///
@@ -439,7 +439,7 @@ impl<T: ?Sized> RefCell<T> {
439
439
}
440
440
}
441
441
442
- /// Gets a reference to the underlying `UnsafeCell`.
442
+ /// Returns a reference to the underlying `UnsafeCell`.
443
443
///
444
444
/// This can be used to circumvent `RefCell`'s safety checks.
445
445
///
@@ -671,8 +671,8 @@ impl<T> UnsafeCell<T> {
671
671
///
672
672
/// # Unsafety
673
673
///
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.
676
676
///
677
677
/// # Examples
678
678
///
You can’t perform that action at this time.
0 commit comments