Small fixes for missing backticks in doc

This commit is contained in:
Takayuki Nakata 2021-11-02 09:09:22 +09:00
parent 7cd9bf5af3
commit ec456de2a3
2 changed files with 2 additions and 2 deletions

View file

@ -22,7 +22,7 @@ declare_clippy_lint! {
/// expression). /// expression).
/// ///
/// ### Why is this bad? /// ### Why is this bad?
/// Using the dedicated functions of the Option type is clearer and /// Using the dedicated functions of the `Option` type is clearer and
/// more concise than an `if let` expression. /// more concise than an `if let` expression.
/// ///
/// ### Known problems /// ### Known problems

View file

@ -13,7 +13,7 @@ use rustc_span::{sym, Span};
declare_clippy_lint! { declare_clippy_lint! {
/// ### What it does /// ### What it does
/// Checks for functions of type Result that contain `expect()` or `unwrap()` /// Checks for functions of type `Result` that contain `expect()` or `unwrap()`
/// ///
/// ### Why is this bad? /// ### Why is this bad?
/// These functions promote recoverable errors to non-recoverable errors which may be undesirable in code bases which wish to avoid panics. /// These functions promote recoverable errors to non-recoverable errors which may be undesirable in code bases which wish to avoid panics.