Skip to content

Commit 00a39cc

Browse files
committed
Auto merge of rust-lang#113745 - tshepang:patch-1, r=workingjubilee
collect.rs: remove "Basic usage" text where not useful
2 parents ffb9b61 + f05dc95 commit 00a39cc

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

library/core/src/iter/traits/collect.rs

-6
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,6 @@ pub trait FromIterator<A>: Sized {
138138
///
139139
/// # Examples
140140
///
141-
/// Basic usage:
142-
///
143141
/// ```
144142
/// let five_fives = std::iter::repeat(5).take(5);
145143
///
@@ -255,8 +253,6 @@ pub trait IntoIterator {
255253
///
256254
/// # Examples
257255
///
258-
/// Basic usage:
259-
///
260256
/// ```
261257
/// let v = [1, 2, 3];
262258
/// let mut iter = v.into_iter();
@@ -363,8 +359,6 @@ pub trait Extend<A> {
363359
///
364360
/// # Examples
365361
///
366-
/// Basic usage:
367-
///
368362
/// ```
369363
/// // You can extend a String with some chars:
370364
/// let mut message = String::from("abc");

0 commit comments

Comments
 (0)