about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTrevor Gross <t.gross35@gmail.com>2024-07-26 19:03:08 -0400
committerGitHub <noreply@github.com>2024-07-26 19:03:08 -0400
commit8385f3b7ee8974d109d4bbf64bdee877bf11f2a8 (patch)
treede86e56607f75e9ec7ae46da17ee8d2131076af0
parent7eaf74743b600b031c862e24e97e4861b885183c (diff)
parent130ce490f55b6ca8dbe65c977bae18b04736d3f3 (diff)
downloadrust-8385f3b7ee8974d109d4bbf64bdee877bf11f2a8.tar.gz
rust-8385f3b7ee8974d109d4bbf64bdee877bf11f2a8.zip
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
-rw-r--r--library/core/src/iter/traits/iterator.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/iter/traits/iterator.rs b/library/core/src/iter/traits/iterator.rs
index 733d414d444..469097e4847 100644
--- a/library/core/src/iter/traits/iterator.rs
+++ b/library/core/src/iter/traits/iterator.rs
@@ -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
     ///