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
+1 -1
View File
@@ -823,7 +823,7 @@ fn call<T>(mut f: impl FnMut(T)) -> impl FnMut((), T) {
///
/// 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
///