Skip to content

Commit 4435544

Browse files
authored
Rollup merge of #112206 - k0ur0x:typo, r=Nilstrieb
Fix typo in `std::cell` module docs
2 parents 5397b31 + 9df4572 commit 4435544

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/cell.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
//! [`borrow`](`RefCell::borrow`), and a mutable borrow (`&mut T`) can be obtained with
6060
//! [`borrow_mut`](`RefCell::borrow_mut`). When these functions are called, they first verify that
6161
//! Rust's borrow rules will be satisfied: any number of immutable borrows are allowed or a
62-
//! single immutable borrow is allowed, but never both. If a borrow is attempted that would violate
62+
//! single mutable borrow is allowed, but never both. If a borrow is attempted that would violate
6363
//! these rules, the thread will panic.
6464
//!
6565
//! The corresponding [`Sync`] version of `RefCell<T>` is [`RwLock<T>`].

0 commit comments

Comments
 (0)