-
Notifications
You must be signed in to change notification settings - Fork 62
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
Fix autolinks in the documentation #589
Conversation
@@ -1368,7 +1368,7 @@ pub use mockall_derive::concretize; | |||
/// } | |||
/// # fn main() {} | |||
/// ``` | |||
/// Mocking an unsupported `#[derive(X)]` attribute, e.g. `Clone`, is | |||
/// Mocking an unsupported `#[derive(X)]` attribute, e.g. [`Clone`], is |
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.
Does this link actually work? Did you generate the docs to check? And is it even worthwhile to make a link here? I don't think many readers will need one.
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.
Yes, the links are valid. I've added them for the sake of consistency
mockall/src/lib.rs
Outdated
@@ -1388,7 +1388,7 @@ pub use mockall_derive::concretize; | |||
/// | |||
/// When mocking a generic struct's implementation of a generic trait, use the | |||
/// same name for their generic parameters. For example, if you wanted to mock | |||
/// `Rc`, do | |||
/// [`Rc`], do |
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.
Likewise, I don't think this needs to be a link. It's not really important for this example that users know exactly what Rc does.
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.
I think you should remove the link to std::rc::Rc; It isn't helpful here.
No description provided.