@@ -2395,7 +2395,7 @@ impl<T: Clone, A: Allocator> Vec<T, A> {
2395
2395
/// Appends elements specified by the `src` parameter to the end of the vector.
2396
2396
/// The `src` parameter is of type [`RangeBounds`], which means that
2397
2397
/// it can be used to specify a range of elements in the vector.
2398
- ///
2398
+ ///
2399
2399
/// [`RangeBounds`]: ../../std/ops/trait.RangeBounds.html
2400
2400
///
2401
2401
/// # Panics
@@ -2404,7 +2404,7 @@ impl<T: Clone, A: Allocator> Vec<T, A> {
2404
2404
/// Panics if the end index is greater than the length of the vector.
2405
2405
///
2406
2406
/// # Examples
2407
- ///
2407
+ ///
2408
2408
/// With numbers:
2409
2409
///
2410
2410
/// ```
@@ -2420,18 +2420,18 @@ impl<T: Clone, A: Allocator> Vec<T, A> {
2420
2420
/// numbers3.extend_from_within(1..3);
2421
2421
/// assert_eq!(numbers3, [0, 1, 2, 3, 4, 1, 2]);
2422
2422
/// ```
2423
- ///
2423
+ ///
2424
2424
/// With characters:
2425
- ///
2425
+ ///
2426
2426
/// ```
2427
2427
/// let mut characters1 = vec!['a', 'b', 'c', 'd', 'e'];
2428
2428
/// characters1.extend_from_within(2..);
2429
2429
/// assert_eq!(characters1, ['a', 'b', 'c', 'd', 'e', 'c', 'd', 'e']);
2430
- ///
2430
+ ///
2431
2431
/// let mut characters2 = vec!['a', 'b', 'c', 'd', 'e'];
2432
2432
/// characters2.extend_from_within(..2);
2433
2433
/// assert_eq!(characters2, ['a', 'b', 'c', 'd', 'e', 'a', 'b']);
2434
- ///
2434
+ ///
2435
2435
/// let mut characters3 = vec!['a', 'b', 'c', 'd', 'e'];
2436
2436
/// characters3.extend_from_within(1..3);
2437
2437
/// assert_eq!(characters3, ['a', 'b', 'c', 'd', 'e', 'b', 'c']);
0 commit comments