Skip to content

Conversation

ThePuzzlemaker
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dubious justification for using NonNull in Arc
1 participant