Skip to content

Commit

Permalink
Fix syntax highlighting of code fence
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Aloso committed Jan 30, 2020
1 parent 8002bad commit f0dc981
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/methods/mod.rs
Expand Up @@ -143,7 +143,7 @@ declare_clippy_lint! {
///
/// Better:
///
/// ```
/// ```rust
/// let res: Result<usize, ()> = Ok(1);
/// res?;
/// # Ok::<(), ()>(())
Expand Down

0 comments on commit f0dc981

Please sign in to comment.