Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 1f8b204

Browse files
authored
Second instance of vec! with parenthesis.
1 parent 6eb7a46 commit 1f8b204

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/unit_return_expecting_ord.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ declare_clippy_lint! {
2626
///
2727
/// ### Example
2828
/// ```rust
29-
/// let mut twins = vec!((1, 1), (2, 2));
29+
/// let mut twins = vec![(1, 1), (2, 2)];
3030
/// twins.sort_by_key(|x| { x.1; });
3131
/// ```
3232
#[clippy::version = "1.47.0"]

0 commit comments

Comments
 (0)