@@ -89,8 +89,6 @@ pub trait Iterator {
89
89
///
90
90
/// # Examples
91
91
///
92
- /// Basic usage:
93
- ///
94
92
/// ```
95
93
/// let a = [1, 2, 3];
96
94
///
@@ -249,8 +247,6 @@ pub trait Iterator {
249
247
///
250
248
/// # Examples
251
249
///
252
- /// Basic usage:
253
- ///
254
250
/// ```
255
251
/// let a = [1, 2, 3];
256
252
/// assert_eq!(a.iter().count(), 3);
@@ -280,8 +276,6 @@ pub trait Iterator {
280
276
///
281
277
/// # Examples
282
278
///
283
- /// Basic usage:
284
- ///
285
279
/// ```
286
280
/// let a = [1, 2, 3];
287
281
/// assert_eq!(a.iter().last(), Some(&3));
@@ -324,8 +318,6 @@ pub trait Iterator {
324
318
///
325
319
/// # Examples
326
320
///
327
- /// Basic usage:
328
- ///
329
321
/// ```
330
322
/// #![feature(iter_advance_by)]
331
323
///
@@ -432,8 +424,6 @@ pub trait Iterator {
432
424
///
433
425
/// # Examples
434
426
///
435
- /// Basic usage:
436
- ///
437
427
/// ```
438
428
/// let a = [0, 1, 2, 3, 4, 5];
439
429
/// let mut iter = a.iter().step_by(2);
@@ -1342,8 +1332,6 @@ pub trait Iterator {
1342
1332
///
1343
1333
/// # Examples
1344
1334
///
1345
- /// Basic usage:
1346
- ///
1347
1335
/// ```
1348
1336
/// let a = [1, 2, 3];
1349
1337
///
@@ -1434,8 +1422,6 @@ pub trait Iterator {
1434
1422
///
1435
1423
/// # Examples
1436
1424
///
1437
- /// Basic usage:
1438
- ///
1439
1425
/// ```
1440
1426
/// let a = [1, 2, 3, 4];
1441
1427
///
@@ -1486,8 +1472,6 @@ pub trait Iterator {
1486
1472
///
1487
1473
/// # Examples
1488
1474
///
1489
- /// Basic usage:
1490
- ///
1491
1475
/// ```
1492
1476
/// let words = ["alpha", "beta", "gamma"];
1493
1477
///
@@ -1765,8 +1749,6 @@ pub trait Iterator {
1765
1749
///
1766
1750
/// # Examples
1767
1751
///
1768
- /// Basic usage:
1769
- ///
1770
1752
/// ```
1771
1753
/// // an iterator which alternates between Some and None
1772
1754
/// struct Alternate {
@@ -1911,8 +1893,6 @@ pub trait Iterator {
1911
1893
///
1912
1894
/// # Examples
1913
1895
///
1914
- /// Basic usage:
1915
- ///
1916
1896
/// ```
1917
1897
/// let mut words = ["hello", "world", "of", "Rust"].into_iter();
1918
1898
///
@@ -2221,8 +2201,6 @@ pub trait Iterator {
2221
2201
///
2222
2202
/// # Examples
2223
2203
///
2224
- /// Basic usage:
2225
- ///
2226
2204
/// ```
2227
2205
/// let a = [1, 2, 3];
2228
2206
///
@@ -3193,8 +3171,6 @@ pub trait Iterator {
3193
3171
///
3194
3172
/// # Examples
3195
3173
///
3196
- /// Basic usage:
3197
- ///
3198
3174
/// ```
3199
3175
/// let a = [1, 2, 3];
3200
3176
/// let b: Vec<u32> = Vec::new();
@@ -3232,8 +3208,6 @@ pub trait Iterator {
3232
3208
///
3233
3209
/// # Examples
3234
3210
///
3235
- /// Basic usage:
3236
- ///
3237
3211
/// ```
3238
3212
/// let a = [1, 2, 3];
3239
3213
/// let b: Vec<u32> = Vec::new();
@@ -3420,8 +3394,6 @@ pub trait Iterator {
3420
3394
///
3421
3395
/// # Examples
3422
3396
///
3423
- /// Basic usage:
3424
- ///
3425
3397
/// ```
3426
3398
/// let a = [(1, 2), (3, 4), (5, 6)];
3427
3399
///
@@ -3458,8 +3430,6 @@ pub trait Iterator {
3458
3430
///
3459
3431
/// # Examples
3460
3432
///
3461
- /// Basic usage:
3462
- ///
3463
3433
/// ```
3464
3434
/// let a = [1, 2, 3];
3465
3435
///
@@ -3538,8 +3508,6 @@ pub trait Iterator {
3538
3508
///
3539
3509
/// # Examples
3540
3510
///
3541
- /// Basic usage:
3542
- ///
3543
3511
/// ```
3544
3512
/// let a = [1, 2, 3];
3545
3513
///
@@ -3624,8 +3592,6 @@ pub trait Iterator {
3624
3592
///
3625
3593
/// # Examples
3626
3594
///
3627
- /// Basic usage:
3628
- ///
3629
3595
/// ```
3630
3596
/// let a = [1, 2, 3];
3631
3597
/// let sum: i32 = a.iter().sum();
@@ -3703,8 +3669,6 @@ pub trait Iterator {
3703
3669
///
3704
3670
/// # Examples
3705
3671
///
3706
- /// Basic usage:
3707
- ///
3708
3672
/// ```
3709
3673
/// #![feature(iter_order_by)]
3710
3674
///
@@ -3790,8 +3754,6 @@ pub trait Iterator {
3790
3754
///
3791
3755
/// # Examples
3792
3756
///
3793
- /// Basic usage:
3794
- ///
3795
3757
/// ```
3796
3758
/// #![feature(iter_order_by)]
3797
3759
///
@@ -3863,8 +3825,6 @@ pub trait Iterator {
3863
3825
///
3864
3826
/// # Examples
3865
3827
///
3866
- /// Basic usage:
3867
- ///
3868
3828
/// ```
3869
3829
/// #![feature(iter_order_by)]
3870
3830
///
0 commit comments