fix typo: whenver -> whenever

This commit is contained in:
Chris Midgley 2021-07-26 22:12:35 +01:00
parent fc24bcead1
commit cccd4e2a27

View File

@ -583,7 +583,7 @@ impl<T> Cell<[T]> {
pub struct RefCell<T: ?Sized> { pub struct RefCell<T: ?Sized> {
borrow: Cell<BorrowFlag>, borrow: Cell<BorrowFlag>,
// Stores the location of the earliest currently active borrow. // Stores the location of the earliest currently active borrow.
// This gets updated whenver we go from having zero borrows // This gets updated whenever we go from having zero borrows
// to having a single borrow. When a borrow occurs, this gets included // to having a single borrow. When a borrow occurs, this gets included
// in the generated `BorrowError/`BorrowMutError` // in the generated `BorrowError/`BorrowMutError`
#[cfg(feature = "debug_refcell")] #[cfg(feature = "debug_refcell")]