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 arc doc, fixing #32905 #34733

Merged
merged 1 commit into from
Jul 15, 2016
Merged

Improve arc doc, fixing #32905 #34733

merged 1 commit into from
Jul 15, 2016

Conversation

izgzhen
Copy link
Contributor

@izgzhen izgzhen commented Jul 9, 2016

As issue #32905 detailed, I moved part of the module doc to the struct doc, and fixed some small places in the alloc::arc.

@rust-highfive
Copy link
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @brson (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.

/// In this example, a large vector is shared between several threads.
/// With simple pipes, without `Arc`, a copy would have to be made for each
/// In this example, a large vector of data will be used by several threads.
/// With simple pipes (XXX: wat?) instead of `Arc`, a copy would have to be made for each
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not clear what does pipes really mean here, any comments?

Copy link
Member

Choose a reason for hiding this comment

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

I think it's referring to channels, but we can probably just remove the whole sentence.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removing looks good to me. It might be a distraction I suppose.

@izgzhen
Copy link
Contributor Author

izgzhen commented Jul 9, 2016

Note that I marked the pipes in the diff and had some problem in how to handling this.

@brson
Copy link
Contributor

brson commented Jul 11, 2016

lgtm when @steveklabnik's comments addressed

/// increase the reference counter.
/// In this example, a large vector of data will be shared by several threads. First we
/// wrap it with a `Arc::new` and then clone the `Arc<T>` reference for every thread (which will
/// increase the reference count atomically).
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@steveklabnik How about this?

@steveklabnik
Copy link
Member

Looks good, thanks a ton!

@bors: r+ rollup

@bors
Copy link
Contributor

bors commented Jul 12, 2016

📌 Commit a6ff05c has been approved by steveklabnik

GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Jul 15, 2016
…eveklabnik

Improve arc doc, fixing rust-lang#32905

As issue rust-lang#32905 detailed, I moved part of the module doc to the struct doc, and fixed some small places in the `alloc::arc`.
bors added a commit that referenced this pull request Jul 15, 2016
Rollup of 7 pull requests

- Successful merges: #34456, #34733, #34777, #34794, #34799, #34804, #34818
- Failed merges: #33951
@bors bors merged commit a6ff05c into rust-lang:master Jul 15, 2016
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.

5 participants