about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-04-16 09:12:15 +0000
committerbors <bors@rust-lang.org>2022-04-16 09:12:15 +0000
commitb2959dbf6960e6133654ad13b5378372fc38f3f5 (patch)
treea9ff0b044e4fa01b8d18c99fc33430cccb7c87cc
parent3abd2c08abf651251dc4df31dfc9db77b652a2ae (diff)
parentd1a78f3ea5c17ab5fd7239942242dfcd12c4545f (diff)
downloadrust-b2959dbf6960e6133654ad13b5378372fc38f3f5.tar.gz
rust-b2959dbf6960e6133654ad13b5378372fc38f3f5.zip
Auto merge of #8706 - lupd:cast-abs-to-unsigned, r=xFrednet
Fix formatting of `cast_abs_to_unsigned` docs

The "use instead" section of the example was not being formatted as Rust code, and the "configuration" documentation was being formatted as Rust code.

changelog: `[cast_abs_to_unsigned]` Fix example/configuration formatting
-rw-r--r--clippy_lints/src/casts/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/clippy_lints/src/casts/mod.rs b/clippy_lints/src/casts/mod.rs
index f05315a7d0c..b58252dcb94 100644
--- a/clippy_lints/src/casts/mod.rs
+++ b/clippy_lints/src/casts/mod.rs
@@ -487,6 +487,7 @@ declare_clippy_lint! {
     /// let y: u32 = x.abs() as u32;
     /// ```
     /// Use instead:
+    /// ```rust
     /// let x: i32 = -42;
     /// let y: u32 = x.unsigned_abs();
     /// ```