Skip to content

Commit

Permalink
Rollup merge of #112206 - k0ur0x:typo, r=Nilstrieb
Browse files Browse the repository at this point in the history
Fix typo in `std::cell` module docs
  • Loading branch information
matthiaskrgr authored Jun 2, 2023
2 parents 5397b31 + 9df4572 commit 4435544
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 @@ -59,7 +59,7 @@
//! [`borrow`](`RefCell::borrow`), and a mutable borrow (`&mut T`) can be obtained with
//! [`borrow_mut`](`RefCell::borrow_mut`). When these functions are called, they first verify that
//! Rust's borrow rules will be satisfied: any number of immutable borrows are allowed or a
//! single immutable borrow is allowed, but never both. If a borrow is attempted that would violate
//! single mutable borrow is allowed, but never both. If a borrow is attempted that would violate
//! these rules, the thread will panic.
//!
//! The corresponding [`Sync`] version of `RefCell<T>` is [`RwLock<T>`].
Expand Down

0 comments on commit 4435544

Please sign in to comment.