Fix formatting of cast_abs_to_unsigned
docs
This commit is contained in:
parent
c0fce5a847
commit
d1a78f3ea5
@ -487,6 +487,7 @@
|
||||
/// let y: u32 = x.abs() as u32;
|
||||
/// ```
|
||||
/// Use instead:
|
||||
/// ```rust
|
||||
/// let x: i32 = -42;
|
||||
/// let y: u32 = x.unsigned_abs();
|
||||
/// ```
|
||||
|
Loading…
Reference in New Issue
Block a user