Conversation
src/liballoc/rc.rs
Outdated
There was a problem hiding this comment.
Not a concrete suggestion, but these are called associated functions
There was a problem hiding this comment.
Cool; added a note.
src/liballoc/rc.rs
Outdated
There was a problem hiding this comment.
Alternatively, in order to prevent the code block from breaking up the sentence, it could also be something like:
In order to avoid name clashes with
T's methods, the methods ofRcitself, such asdowngrade, are called using function-like syntax:
There was a problem hiding this comment.
Good idea; fixed.
src/liballoc/rc.rs
Outdated
There was a problem hiding this comment.
Alternatively, assert_eq!
There was a problem hiding this comment.
I went with == because we're talking about the definition of ==. Of course, assert_eq! uses == but it's an extra layer of indirection.
src/liballoc/rc.rs
Outdated
There was a problem hiding this comment.
Alternatively, assert_eq!
There was a problem hiding this comment.
I don't think there's an assert_neq!. Anyway, see above.
There was a problem hiding this comment.
Just kidding, missed the !=. On a side note: rust-lang/rfcs#1653
|
btw, I'm updating |
|
Rebased and squashed. |
|
Thanks a lot! @bors: r+ rollup |
|
📌 Commit c316ae5 has been approved by |
…cs, r=GuillaumeGomez Tweak std::rc docs Fixes rust-lang#29372. r? @GuillaumeGomez
…cs, r=GuillaumeGomez Tweak std::rc docs Fixes rust-lang#29372. r? @GuillaumeGomez
Update Arc docs to match new Rc docs `Rc` docs were updated in rust-lang#36571. This applies similar changes to `Arc` docs. r? @GuillaumeGomez
Fixes #29372.
r? @GuillaumeGomez