Skip to content

Improve Arc<T> documentation, and Rc<T> docs a bit #19944

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

Merged
merged 1 commit into from
Dec 22, 2014

Conversation

steveklabnik
Copy link
Member

Take the docs from Rc, apply them to Arc, and fix some line lengths.

//! let five = five.clone();
//!
//! spawn(move || {
//! let five = five.lock();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might as well make this example show off mutation by incrementing it before printing or something.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah yes, good call

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Take the docs from Rc<T>, apply them to Arc<T>, and fix some line lengths.
bors added a commit that referenced this pull request Dec 19, 2014
Improve Arc<T> documentation, and Rc<T> docs a bit

Reviewed-by: brson
alexcrichton added a commit to alexcrichton/rust that referenced this pull request Dec 21, 2014
Take the docs from Rc<T>, apply them to Arc<T>, and fix some line lengths.
@bors bors merged commit 6875eb5 into rust-lang:master Dec 22, 2014
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.

4 participants