Skip to content

Commit 4c8e816

Browse files
committed
Use real type in doc examples
1 parent 02b1f26 commit 4c8e816

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clippy_lints/src/trailing_zero_sized_array_without_repr.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ declare_clippy_lint! {
1515
/// ### Example
1616
/// ```rust
1717
/// struct RarelyUseful {
18-
/// some_field: usize,
19-
/// last: [SomeType; 0],
18+
/// some_field: u32,
19+
/// last: [u32; 0],
2020
/// }
2121
/// ```
2222
///
23-
/// Use instead:
23+
/// Use instead:
2424
/// ```rust
2525
/// #[repr(C)]
2626
/// struct MoreOftenUseful {
2727
/// some_field: usize,
28-
/// last: [SomeType; 0],
28+
/// last: [u32; 0],
2929
/// }
3030
/// ```
3131
pub TRAILING_ZERO_SIZED_ARRAY_WITHOUT_REPR,

0 commit comments

Comments
 (0)