fix: usage of backticks in documentation comments#12
Conversation
Idiomatic Rust code's usage of backticks in documentation comments requires that names of terms with semantic meaning be surrounded by backticks and requires that backtick usage be balanced (per lint clippy::doc-markdown). This commit ensures adherence to these standards across the codebase.
There was a problem hiding this comment.
Thanks!
The unbalanced backticks were intentional; see the comment there. Everything else looks good.
Also, you mentioned a clippy warning. Is there an additional clippy configuration that should be added to the CI workflow in order to detect problems in doc comments? cargo clippy and cargo doc both don't complain about anything currently.
By default, $ cargo clippy --all -- -W clippy::all -W clippy::pedantic -W clippy::restrictionbut this is beyond excessive and includes lints which contradict one another; a more measured approach is necessary to get any work done. To set the standards for a particular project (so linting can be done by just running #![warn(clippy::pedantic)]at the top level of your project. I would strongly recommend giving this webpage a read-through to understand how |
Idiomatic Rust code's usage of backticks in documentation comments requires that names of terms with semantic meaning be surrounded by backticks and requires that backtick usage be balanced (per lint clippy::doc-markdown). This pull request ensures adherence to these standards across the codebase.