We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5397b31 + 9df4572 commit 4435544Copy full SHA for 4435544
library/core/src/cell.rs
@@ -59,7 +59,7 @@
59
//! [`borrow`](`RefCell::borrow`), and a mutable borrow (`&mut T`) can be obtained with
60
//! [`borrow_mut`](`RefCell::borrow_mut`). When these functions are called, they first verify that
61
//! 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
+//! single mutable borrow is allowed, but never both. If a borrow is attempted that would violate
63
//! these rules, the thread will panic.
64
//!
65
//! The corresponding [`Sync`] version of `RefCell<T>` is [`RwLock<T>`].
0 commit comments