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.
This commit is contained in:
Ludwig Stecher 2020-01-30 21:55:30 +01:00 committed by GitHub
parent 8002bad114
commit f0dc98160b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -143,7 +143,7 @@ declare_clippy_lint! {
/// ///
/// Better: /// Better:
/// ///
/// ``` /// ```rust
/// let res: Result<usize, ()> = Ok(1); /// let res: Result<usize, ()> = Ok(1);
/// res?; /// res?;
/// # Ok::<(), ()>(()) /// # Ok::<(), ()>(())