-
Notifications
You must be signed in to change notification settings - Fork 568
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 link in documentation of widget::Image #1730
Conversation
struct ImageBuf now lives in piet not in druid-shell
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.
Good catch! I think we can do even better, though, now that intra-doc links are stable. This way, the compiler will catch it next time it breaks.
druid/src/widget/image.rs
Outdated
/// [`ImageBuf`]: ../piet/struct.ImageBuf.html | ||
/// [`FillStrat`]: ../widget/enum.FillStrat.html | ||
/// [`InterpolationMode`]: ../piet/enum.InterpolationMode.html |
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.
/// [`ImageBuf`]: ../piet/struct.ImageBuf.html | |
/// [`FillStrat`]: ../widget/enum.FillStrat.html | |
/// [`InterpolationMode`]: ../piet/enum.InterpolationMode.html | |
/// [`ImageBuf`]: piet::ImageBuf | |
/// [`FillStrat`]: crate::widget::FillStrat | |
/// [`InterpolationMode`]: piet::InterpolationMode |
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.
we can do even better: if these types are in scope, we don't need to include explicit links to them at all, rustdoc will automatically resolve links with the format [`Type`]
if Type
is in scope.
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've updated with those three lines completely removed. All three links do work in the built documentation.
Don't know enough about this to approve, but my review comment is resolved
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.
Thanks!
struct ImageBuf now lives in piet not in druid-shell