Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit f0dc981

Browse files
authored
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.
1 parent 8002bad commit f0dc981

File tree

1 file changed

+1
-1
lines changed
  • clippy_lints/src/methods

1 file changed

+1
-1
lines changed

clippy_lints/src/methods/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ declare_clippy_lint! {
143143
///
144144
/// Better:
145145
///
146-
/// ```
146+
/// ```rust
147147
/// let res: Result<usize, ()> = Ok(1);
148148
/// res?;
149149
/// # Ok::<(), ()>(())

0 commit comments

Comments
 (0)