From f0dc98160be8367fd011438da90fcce1d19e5b38 Mon Sep 17 00:00:00 2001 From: Ludwig Stecher <4567.angel@gmail.com> Date: Thu, 30 Jan 2020 21:55:30 +0100 Subject: [PATCH] Fix syntax highlighting of code fence The documentation for RESULT_EXPECT_USED includes this code: let res: Result = 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. --- clippy_lints/src/methods/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = Ok(1); /// res?; /// # Ok::<(), ()>(())