Rollup merge of #86453 - akiselev:patch-1, r=dtolnay

stdlib: Fix typo in internal RefCell docs

`BorroeError` => `BorrowError` in [cell.rs](https://github.com/rust-lang/rust/blob/master/library/core/src/cell.rs#L581)
This commit is contained in:
Yuki Okushi 2021-06-19 10:14:15 +09:00 committed by GitHub
commit ad79aba2bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -585,7 +585,7 @@ pub struct RefCell<T: ?Sized> {
// Stores the location of the earliest currently active borrow.
// This gets updated whenver we go from having zero borrows
// to having a single borrow. When a borrow occurs, this gets included
// in the generated `BorroeError/`BorrowMutError`
// in the generated `BorrowError/`BorrowMutError`
#[cfg(feature = "debug_refcell")]
borrowed_at: Cell<Option<&'static crate::panic::Location<'static>>>,
value: UnsafeCell<T>,