diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-06-02 18:12:47 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-02 18:12:47 +0200 |
| commit | 4435544c35480c302cc89485d7c1e59719e0871a (patch) | |
| tree | 65a851e23f8d2d3fb8e39fbb1e8b588cd8a9791b | |
| parent | 5397b31744bfec45bfa47937056740b9c59d126f (diff) | |
| parent | 9df45722775774e2d3c30638cf1491e418ae4157 (diff) | |
| download | rust-4435544c35480c302cc89485d7c1e59719e0871a.tar.gz rust-4435544c35480c302cc89485d7c1e59719e0871a.zip | |
Rollup merge of #112206 - k0ur0x:typo, r=Nilstrieb
Fix typo in `std::cell` module docs
| -rw-r--r-- | library/core/src/cell.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/cell.rs b/library/core/src/cell.rs index 744767aae44..c1cc892eb86 100644 --- a/library/core/src/cell.rs +++ b/library/core/src/cell.rs @@ -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>`]. |
