mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
Fix typo in std::cell
module docs
This commit is contained in:
parent
8ebf04225d
commit
9df4572277
@ -59,7 +59,7 @@
|
|||||||
//! [`borrow`](`RefCell::borrow`), and a mutable borrow (`&mut T`) can be obtained with
|
//! [`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
|
//! [`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
|
//! 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.
|
//! these rules, the thread will panic.
|
||||||
//!
|
//!
|
||||||
//! The corresponding [`Sync`] version of `RefCell<T>` is [`RwLock<T>`].
|
//! The corresponding [`Sync`] version of `RefCell<T>` is [`RwLock<T>`].
|
||||||
|
Loading…
Reference in New Issue
Block a user