about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-07-16 07:37:33 +0000
committerbors <bors@rust-lang.org>2023-07-16 07:37:33 +0000
commit00a39cc785fcbb4f1e9c9454e9ee8a85e6ff021c (patch)
tree67fb3612d86357d32bc0c19ab8bc0e1d5d18a04c
parentffb9b61294b96c389d343a4c55b15400249d74e6 (diff)
parentf05dc95346c5095ea271acfad26abc61b9f4f35a (diff)
downloadrust-00a39cc785fcbb4f1e9c9454e9ee8a85e6ff021c.tar.gz
rust-00a39cc785fcbb4f1e9c9454e9ee8a85e6ff021c.zip
Auto merge of #113745 - tshepang:patch-1, r=workingjubilee
collect.rs: remove "Basic usage" text where not useful
-rw-r--r--library/core/src/iter/traits/collect.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/library/core/src/iter/traits/collect.rs b/library/core/src/iter/traits/collect.rs
index 0675e56358f..e0ef5071c40 100644
--- a/library/core/src/iter/traits/collect.rs
+++ b/library/core/src/iter/traits/collect.rs
@@ -138,8 +138,6 @@ pub trait FromIterator<A>: Sized {
     ///
     /// # Examples
     ///
-    /// Basic usage:
-    ///
     /// ```
     /// let five_fives = std::iter::repeat(5).take(5);
     ///
@@ -255,8 +253,6 @@ pub trait IntoIterator {
     ///
     /// # Examples
     ///
-    /// Basic usage:
-    ///
     /// ```
     /// let v = [1, 2, 3];
     /// let mut iter = v.into_iter();
@@ -363,8 +359,6 @@ pub trait Extend<A> {
     ///
     /// # Examples
     ///
-    /// Basic usage:
-    ///
     /// ```
     /// // You can extend a String with some chars:
     /// let mut message = String::from("abc");