Skip to content

Commit

Permalink
Use real type in doc examples
Browse files Browse the repository at this point in the history
  • Loading branch information
nhamovitz committed Oct 19, 2021
1 parent 02b1f26 commit 4c8e816
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions clippy_lints/src/trailing_zero_sized_array_without_repr.rs
Expand Up @@ -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,
Expand Down

0 comments on commit 4c8e816

Please sign in to comment.