Rollup merge of #128235 - harryscholes:fix-iterator-filter-docs, r=tgross35

Fix `Iterator::filter` docs

Small fix to add code formatting around `Iterator::filter` `true` return type
This commit is contained in:
Trevor Gross 2024-07-26 19:03:08 -04:00 committed by GitHub
commit 8385f3b7ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -823,7 +823,7 @@ pub trait Iterator {
///
/// Given an element the closure must return `true` or `false`. The returned
/// iterator will yield only the elements for which the closure returns
/// true.
/// `true`.
///
/// # Examples
///