Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve wording and description of atomics in the Arc chapter #430

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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