about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--clippy_lints/src/trailing_zero_sized_array_without_repr.rs8
1 files 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 @@ declare_clippy_lint! {
     /// ### 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,