mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
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
@ -143,7 +143,7 @@ declare_clippy_lint! {
|
||||
///
|
||||
/// Better:
|
||||
///
|
||||
/// ```
|
||||
/// ```rust
|
||||
/// let res: Result<usize, ()> = Ok(1);
|
||||
/// res?;
|
||||
/// # Ok::<(), ()>(())
|
||||
|
Loading…
Reference in New Issue
Block a user