mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 05:33:27 +00:00
Use real type in doc examples
This commit is contained in:
parent
02b1f266d6
commit
4c8e816972
1 changed files with 4 additions and 4 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue