Skip to content

Commit

Permalink
Small fixes for missing backticks in doc
Browse files Browse the repository at this point in the history
  • Loading branch information
giraffate committed Nov 2, 2021
1 parent 7cd9bf5 commit ec456de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clippy_lints/src/option_if_let_else.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ declare_clippy_lint! {
/// expression).
///
/// ### 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.
///
/// ### Known problems
Expand Down
2 changes: 1 addition & 1 deletion clippy_lints/src/unwrap_in_result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use rustc_span::{sym, Span};

declare_clippy_lint! {
/// ### 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?
/// These functions promote recoverable errors to non-recoverable errors which may be undesirable in code bases which wish to avoid panics.
Expand Down

0 comments on commit ec456de

Please sign in to comment.