about summary refs log tree commit diff
path: root/clippy_lints/src/methods
diff options
context:
space:
mode:
authorLudwig Stecher <4567.angel@gmail.com>2020-01-30 21:55:30 +0100
committerGitHub <noreply@github.com>2020-01-30 21:55:30 +0100
commitf0dc98160be8367fd011438da90fcce1d19e5b38 (patch)
tree51a725e27a71d1c2ef32e09aa2d7d8c2fbfce525 /clippy_lints/src/methods
parent8002bad1144d90be144cc0b7295fd7ca3473269f (diff)
downloadrust-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.rs2
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::<(), ()>(())