diff options
| author | Tobias Decking <Tobias.Decking@gmail.com> | 2023-08-30 13:36:37 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-30 13:36:37 +0200 |
| commit | 6eb7a46b8872af41e467d5ee96fd15c5741fec49 (patch) | |
| tree | 9d307735444cbeaf439cf4467222ae34f744cdad | |
| parent | b97eaab558bd37f665b10a79fd5aecea3dde920f (diff) | |
| download | rust-6eb7a46b8872af41e467d5ee96fd15c5741fec49.tar.gz rust-6eb7a46b8872af41e467d5ee96fd15c5741fec49.zip | |
Documentation Formatting
| -rw-r--r-- | clippy_lints/src/methods/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/methods/mod.rs b/clippy_lints/src/methods/mod.rs index 5fb0d9f0a57..df44b1a676b 100644 --- a/clippy_lints/src/methods/mod.rs +++ b/clippy_lints/src/methods/mod.rs @@ -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, |
