-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Add missing links to Rc doc #38189
Add missing links to Rc doc #38189
Conversation
@@ -251,9 +251,11 @@ struct RcBox<T: ?Sized> { | |||
/// See the [module-level documentation](./index.html) for more details. | |||
/// | |||
/// The inherent methods of `Rc` are all associated functions, which means | |||
/// that you have to call them as e.g. `Rc::get_mut(&value)` instead of | |||
/// `value.get_mut()`. This avoids conflicts with methods of the inner | |||
/// that you have to call them as e.g. [`Rc::get_mut(&value)`][get_mut] instead of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it looks like the rest of the file uses 79 (or 80?) characters for line length. Can you make this line match?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In a lot of places, it goes beyond 80 columns so I don't see it as an issue?
@@ -127,20 +114,20 @@ | |||
//! ``` | |||
//! | |||
//! If our requirements change, and we also need to be able to traverse from | |||
//! `Owner` to `Gadget`, we will run into problems. An `Rc` pointer from `Owner` | |||
//! `Owner` to `Gadget`, we will run into problems. An [`Rc`] pointer from `Owner` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment as https://github.com/rust-lang/rust/pull/38189/files#r91204663
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And same answer. :p
r=me after line lengths are fixed |
You're right, looks like it's 100 in other places in this file. @bors r+ rollup |
📌 Commit 5caec61 has been approved by |
Add missing links to Rc doc r? @frewsxcv
r? @frewsxcv