Rollup merge of #87494 - midgleyc:comment-typos, r=joshtriplett

fix typo: whenver -> whenever

Fix a typo in a comment in RefCell: "whenver" -> "whenever".
This commit is contained in:
Yuki Okushi 2021-07-27 19:52:48 +09:00 committed by GitHub
commit 7282d71dc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -583,7 +583,7 @@ impl<T> Cell<[T]> {
pub struct RefCell<T: ?Sized> {
borrow: Cell<BorrowFlag>,
// 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
// in the generated `BorrowError/`BorrowMutError`
#[cfg(feature = "debug_refcell")]