nomicon icon indicating copy to clipboard operation
nomicon copied to clipboard

Improve wording and description of atomics in the `Arc` chapter

Open ThePuzzlemaker opened this issue 2 years ago • 0 comments

I attempted my best to improve my original description of atomics. This removes the giant ugly double-blockquote referencing the Rust alloc crate, which references the Boost documentation. Please let me know if my descriptions are wrong!

I also fixed #323 with this edit; it didn't really make sense anyway to have it be a *mut ArcInner<T> originally as it wouldn't have been possible to mutate the inner value or the refcount (the refcount can be updated through a shared ref with atomics, anyway). I made sure to keep the description of variance, so the reader understands why that is an important property to retain.

ThePuzzlemaker avatar Nov 19 '23 02:11 ThePuzzlemaker