Documentation Formatting
This commit is contained in:
parent
b97eaab558
commit
6eb7a46b88
@ -3054,12 +3054,12 @@ declare_clippy_lint! {
|
||||
///
|
||||
/// ### Example
|
||||
/// ```rust
|
||||
/// vec!(1, 2, 3, 4, 5).resize(0, 5)
|
||||
/// vec![1, 2, 3, 4, 5].resize(0, 5)
|
||||
/// ```
|
||||
///
|
||||
/// Use instead:
|
||||
/// ```rust
|
||||
/// vec!(1, 2, 3, 4, 5).clear()
|
||||
/// vec![1, 2, 3, 4, 5].clear()
|
||||
/// ```
|
||||
#[clippy::version = "1.46.0"]
|
||||
pub VEC_RESIZE_TO_ZERO,
|
||||
|
Loading…
x
Reference in New Issue
Block a user