collect.rs: remove "Basic usage" text where not useful

This commit is contained in:
Tshepang Mbambo 2023-07-16 05:08:25 +02:00 committed by GitHub
parent 2c718d1259
commit f05dc95346
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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");