From 4c8e8169720d54db905142a18502ab2a2dad63a0 Mon Sep 17 00:00:00 2001 From: Nathaniel Hamovitz <18648574+nhamovitz@users.noreply.github.com> Date: Mon, 18 Oct 2021 18:32:00 -0700 Subject: [PATCH] Use real type in doc examples --- .../src/trailing_zero_sized_array_without_repr.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/clippy_lints/src/trailing_zero_sized_array_without_repr.rs b/clippy_lints/src/trailing_zero_sized_array_without_repr.rs index 5fa13605ae3..bfe0049dfae 100644 --- a/clippy_lints/src/trailing_zero_sized_array_without_repr.rs +++ b/clippy_lints/src/trailing_zero_sized_array_without_repr.rs @@ -15,17 +15,17 @@ /// ### Example /// ```rust /// struct RarelyUseful { - /// some_field: usize, - /// last: [SomeType; 0], + /// some_field: u32, + /// last: [u32; 0], /// } /// ``` /// - /// Use instead: + /// Use instead: /// ```rust /// #[repr(C)] /// struct MoreOftenUseful { /// some_field: usize, - /// last: [SomeType; 0], + /// last: [u32; 0], /// } /// ``` pub TRAILING_ZERO_SIZED_ARRAY_WITHOUT_REPR, -- 2.44.0