diff options
| author | Nathaniel Hamovitz <18648574+nhamovitz@users.noreply.github.com> | 2021-10-18 18:32:00 -0700 |
|---|---|---|
| committer | Nathaniel Hamovitz <18648574+nhamovitz@users.noreply.github.com> | 2021-10-18 18:32:00 -0700 |
| commit | 4c8e8169720d54db905142a18502ab2a2dad63a0 (patch) | |
| tree | 7d6460817a9f7e7c5dd3caada027cdf689ea0677 | |
| parent | 02b1f266d6a98cd9dc430554b80971705c5de09b (diff) | |
| download | rust-4c8e8169720d54db905142a18502ab2a2dad63a0.tar.gz rust-4c8e8169720d54db905142a18502ab2a2dad63a0.zip | |
Use real type in doc examples
| -rw-r--r-- | clippy_lints/src/trailing_zero_sized_array_without_repr.rs | 8 |
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, |
