std::sync::RwLock docs improvement#44778
std::sync::RwLock docs improvement#44778bors merged 1 commit intorust-lang:masterfrom lorepozo:master
Conversation
|
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @steveklabnik (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
| /// to allow access to the contained of the lock. | ||
| /// required that `T` satisfies [`Send`] to be shared across threads and | ||
| /// [`Sync`] to allow concurrent access through readers. The RAII guards | ||
| /// returned from the locking methods implement [`Deref`][] (and [`DerefMut`] |
There was a problem hiding this comment.
@estebank It was intentional — without the [], the parentheses are parsed as the markdown syntax for a URL. e.g. in sync::mpsc::Receiver
|
@bors r+ rollup |
|
📌 Commit f283875 has been approved by |
std::sync::RwLock docs improvement Addresses the `RwLock` part of rust-lang#29377. r? @steveklabnik Added examples, links to types, and a small comparison between RwLock and Mutex.
Addresses the
RwLockpart of #29377.r? @steveklabnik
Added examples, links to types, and a small comparison between RwLock and Mutex.