Auto merge of #11638 - samueltardieu:into-iter, r=Manishearth

Fix two typos in lint description

Fix #11636

changelog: none
This commit is contained in:
bors 2023-10-07 21:33:53 +00:00
commit 33f49f33d6

View file

@ -58,8 +58,8 @@ declare_clippy_lint! {
///
/// ### Why is this bad?
/// It's not bad, but having them is idiomatic and allows the type to be used in iterator chains
/// by just calling `.iter()`, instead of the more awkward `<&Type>::into_iter` or `(&val).iter()` syntax
/// in case of ambiguity with another `Intoiterator` impl.
/// by just calling `.iter()`, instead of the more awkward `<&Type>::into_iter` or `(&val).into_iter()` syntax
/// in case of ambiguity with another `IntoIterator` impl.
///
/// ### Example
/// ```rust