Auto merge of #113745 - tshepang:patch-1, r=workingjubilee

collect.rs: remove "Basic usage" text where not useful
This commit is contained in:
bors 2023-07-16 07:37:33 +00:00
commit 00a39cc785

View File

@ -138,8 +138,6 @@ pub trait FromIterator<A>: Sized {
/// ///
/// # Examples /// # Examples
/// ///
/// Basic usage:
///
/// ``` /// ```
/// let five_fives = std::iter::repeat(5).take(5); /// let five_fives = std::iter::repeat(5).take(5);
/// ///
@ -255,8 +253,6 @@ pub trait IntoIterator {
/// ///
/// # Examples /// # Examples
/// ///
/// Basic usage:
///
/// ``` /// ```
/// let v = [1, 2, 3]; /// let v = [1, 2, 3];
/// let mut iter = v.into_iter(); /// let mut iter = v.into_iter();
@ -363,8 +359,6 @@ pub trait Extend<A> {
/// ///
/// # Examples /// # Examples
/// ///
/// Basic usage:
///
/// ``` /// ```
/// // You can extend a String with some chars: /// // You can extend a String with some chars:
/// let mut message = String::from("abc"); /// let mut message = String::from("abc");