Rollup merge of #31192 - frewsxcv:patch-27, r=alexcrichton
This commit is contained in:
commit
37b48edb53
1 changed files with 3 additions and 1 deletions
|
|
@ -414,7 +414,9 @@ impl<T: ?Sized> RefCell<T> {
|
|||
///
|
||||
/// let c = RefCell::new(5);
|
||||
///
|
||||
/// let borrowed_five = c.borrow_mut();
|
||||
/// *c.borrow_mut() = 7;
|
||||
///
|
||||
/// assert_eq!(*c.borrow(), 7);
|
||||
/// ```
|
||||
///
|
||||
/// An example of panic:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue