]> git.lizzy.rs Git - rust.git/commit
Update Rc and Arc documentation.
authorNicolas Silva <nical@fastmail.com>
Sun, 21 May 2017 14:00:04 +0000 (16:00 +0200)
committerNicolas Silva <nical@fastmail.com>
Mon, 22 May 2017 14:15:37 +0000 (16:15 +0200)
commitdec23d41a607b78c590ab9672815ff53c1e282a7
treeb640430b7a2506719315e7b46608292ee3d8c975
parent84a155f5020bdfecf33ee3d25b2036948165e45f
Update Rc and Arc documentation.

It was decided in the RFC discussion https://github.com/rust-lang/rfcs/pull/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.
src/liballoc/arc.rs
src/liballoc/rc.rs