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

Update to Rc and Arc documentation to favor the Rc::clone(&ptr) syntax. #42137

Merged
merged 1 commit into from
May 27, 2017

Commits on May 22, 2017

  1. Update Rc and Arc documentation.

    It was decided in the RFC discussion rust-lang/rfcs#1954 to make the function call syntax Rc::clone(&foo) the idiomatic way to clone a reference counted pointer (over the method call syntax foo.clone(). This change updates the documentation of Rc, Arc and their respoective Weak pointers to reflect it and bring more exposure to the existence of the function call syntax.
    nical committed May 22, 2017
    Configuration menu
    Copy the full SHA
    dec23d4 View commit details
    Browse the repository at this point in the history