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:
parent
8002bad114
commit
f0dc98160b
1 changed files with 1 additions and 1 deletions
|
|
@ -143,7 +143,7 @@ declare_clippy_lint! {
|
|||
///
|
||||
/// Better:
|
||||
///
|
||||
/// ```
|
||||
/// ```rust
|
||||
/// let res: Result<usize, ()> = Ok(1);
|
||||
/// res?;
|
||||
/// # Ok::<(), ()>(())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue