diff options
| author | Ludwig Stecher <4567.angel@gmail.com> | 2020-01-30 21:55:30 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-30 21:55:30 +0100 |
| commit | f0dc98160be8367fd011438da90fcce1d19e5b38 (patch) | |
| tree | 51a725e27a71d1c2ef32e09aa2d7d8c2fbfce525 /clippy_lints/src/methods | |
| parent | 8002bad1144d90be144cc0b7295fd7ca3473269f (diff) | |
| download | rust-f0dc98160be8367fd011438da90fcce1d19e5b38.tar.gz rust-f0dc98160be8367fd011438da90fcce1d19e5b38.zip | |
Fix syntax highlighting of code fence
The documentation for RESULT_EXPECT_USED includes this code:
let res: Result<usize, ()> = Ok(1);
res?;
# Ok::<(), ()>(())
Because the code fence didn't start with `rust`, the code wasn't highlighted and the line starting with `#` was displayed on the website. This is now fixed.Diffstat (limited to 'clippy_lints/src/methods')
| -rw-r--r-- | clippy_lints/src/methods/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/methods/mod.rs b/clippy_lints/src/methods/mod.rs index 6e5015eb844..0dc1d943179 100644 --- a/clippy_lints/src/methods/mod.rs +++ b/clippy_lints/src/methods/mod.rs @@ -143,7 +143,7 @@ declare_clippy_lint! { /// /// Better: /// - /// ``` + /// ```rust /// let res: Result<usize, ()> = Ok(1); /// res?; /// # Ok::<(), ()>(()) |
