Skip to content

Commit

Permalink
Rollup merge of #87494 - midgleyc:comment-typos, r=joshtriplett
Browse files Browse the repository at this point in the history
fix typo: whenver -> whenever

Fix a typo in a comment in RefCell: "whenver" -> "whenever".
  • Loading branch information
JohnTitor authored Jul 27, 2021
2 parents 988f617 + cccd4e2 commit 7282d71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/cell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down

0 comments on commit 7282d71

Please sign in to comment.