Skip to content
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

doc: Fix errors more prettily #127

Merged
merged 1 commit into from
Sep 17, 2024
Merged

doc: Fix errors more prettily #127

merged 1 commit into from
Sep 17, 2024

Conversation

chrysn
Copy link
Member

@chrysn chrysn commented Sep 16, 2024

Thanks @Kijewski for suggesting this in #126 (comment)

src/adc.rs Outdated
@@ -20,7 +20,7 @@ impl ADCLine {

/// Initialize an ADC line identified by the line number it is assigned on the board
///
/// Safety: See [Self::init()]
/// Safety: See [.init()](Self::init())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my experience, using [text][target] is more stable, because sometimes the target gets interpreted as a hyperlink, which does not happen with […][…]. https://doc.rust-lang.org/rustdoc/write-documentation/linking-to-items-by-name.html mentions the […][…] syntax, so it's no accident that it works.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, forcepushed.

@chrysn chrysn merged commit e07288f into main Sep 17, 2024
81 checks passed
@chrysn chrysn deleted the doc-fixes-more-properly branch September 18, 2024 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants