diff options
| author | Takayuki Nakata <f.seasons017@gmail.com> | 2021-11-02 09:09:22 +0900 |
|---|---|---|
| committer | Takayuki Nakata <f.seasons017@gmail.com> | 2021-11-02 09:09:22 +0900 |
| commit | ec456de2a32dcfd6b891548a0adfd93c6c46c790 (patch) | |
| tree | 8c7afd703949fdf0e25111ad397d44cbda2729e9 | |
| parent | 7cd9bf5af33250988deeb1e5b0575d55bab3d01b (diff) | |
| download | rust-ec456de2a32dcfd6b891548a0adfd93c6c46c790.tar.gz rust-ec456de2a32dcfd6b891548a0adfd93c6c46c790.zip | |
Small fixes for missing backticks in doc
| -rw-r--r-- | clippy_lints/src/option_if_let_else.rs | 2 | ||||
| -rw-r--r-- | clippy_lints/src/unwrap_in_result.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/option_if_let_else.rs b/clippy_lints/src/option_if_let_else.rs index a62eb069989..cbe1c5d44d5 100644 --- a/clippy_lints/src/option_if_let_else.rs +++ b/clippy_lints/src/option_if_let_else.rs @@ -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 diff --git a/clippy_lints/src/unwrap_in_result.rs b/clippy_lints/src/unwrap_in_result.rs index a4680ae137b..6447e3fa2ca 100644 --- a/clippy_lints/src/unwrap_in_result.rs +++ b/clippy_lints/src/unwrap_in_result.rs @@ -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. |
