Skip to content

Commit d1a78f3

Browse files
committed
Fix formatting of cast_abs_to_unsigned docs
1 parent c0fce5a commit d1a78f3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clippy_lints/src/casts/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,7 @@ declare_clippy_lint! {
487487
/// let y: u32 = x.abs() as u32;
488488
/// ```
489489
/// Use instead:
490+
/// ```rust
490491
/// let x: i32 = -42;
491492
/// let y: u32 = x.unsigned_abs();
492493
/// ```

0 commit comments

Comments
 (0)