Documentation Formatting

This commit is contained in:
Tobias Decking 2023-08-30 13:36:37 +02:00 committed by GitHub
parent b97eaab558
commit 6eb7a46b88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,