mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
Rollup merge of #31192 - frewsxcv:patch-27, r=alexcrichton
This commit is contained in:
commit
37b48edb53
@ -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…
Reference in New Issue
Block a user