Fix formatting of cast_abs_to_unsigned docs

This commit is contained in:
dlup 2022-04-15 16:34:44 -04:00
parent c0fce5a847
commit d1a78f3ea5

View File

@ -487,6 +487,7 @@
/// let y: u32 = x.abs() as u32;
/// ```
/// Use instead:
/// ```rust
/// let x: i32 = -42;
/// let y: u32 = x.unsigned_abs();
/// ```