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
-6
View File
@@ -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");