Skip to content

Commit 2219f3c

Browse files
committed
rewrite 'Why is this bad?'
1 parent 9fd048e commit 2219f3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/default_instead_of_iter_empty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ declare_clippy_lint! {
1212
/// It checks for `std::iter::Empty::default()` and suggests replacing it with
1313
/// `std::iter::empty()`.
1414
/// ### Why is this bad?
15-
/// `std::iter::empty()` is shorter than `std::iter::Empty::default()` and returns an equivalent result
15+
/// `std::iter::empty()` is the more idiomatic way.
1616
/// ### Example
1717
/// ```rust
1818
/// let _ = std::iter::Empty::<usize>::default();

0 commit comments

Comments
 (0)