@@ -134,7 +134,7 @@ pub trait SliceExt {
134134 ///
135135 /// # Examples
136136 ///
137- /// ```rust
137+ /// ```
138138 /// let mut v = [5, 4, 1, 3, 2];
139139 /// v.sort_by(|a, b| a.cmp(b));
140140 /// assert!(v == [1, 2, 3, 4, 5]);
@@ -160,7 +160,7 @@ pub trait SliceExt {
160160 ///
161161 /// # Examples
162162 ///
163- /// ```rust
163+ /// ```
164164 /// let mut a = [1, 2, 3, 4, 5];
165165 /// let b = vec![6, 7, 8];
166166 /// let num_moved = a.move_from(b, 0, 3);
@@ -282,7 +282,7 @@ pub trait SliceExt {
282282 /// Print the adjacent pairs of a slice (i.e. `[1,2]`, `[2,3]`,
283283 /// `[3,4]`):
284284 ///
285- /// ```rust
285+ /// ```
286286 /// let v = &[1, 2, 3, 4];
287287 /// for win in v.windows(2) {
288288 /// println!("{:?}", win);
@@ -305,7 +305,7 @@ pub trait SliceExt {
305305 /// Print the slice two elements at a time (i.e. `[1,2]`,
306306 /// `[3,4]`, `[5]`):
307307 ///
308- /// ```rust
308+ /// ```
309309 /// let v = &[1, 2, 3, 4, 5];
310310 /// for win in v.chunks(2) {
311311 /// println!("{:?}", win);
@@ -396,7 +396,7 @@ pub trait SliceExt {
396396 /// uniquely determined position; the second and third are not
397397 /// found; the fourth could match any position in `[1,4]`.
398398 ///
399- /// ```rust
399+ /// ```
400400 /// let s = [0, 1, 1, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55];
401401 /// let s = s.as_slice();
402402 ///
@@ -531,7 +531,7 @@ pub trait SliceExt {
531531 ///
532532 /// # Examples
533533 ///
534- /// ```rust
534+ /// ```
535535 /// let mut v = ["a", "b", "c", "d"];
536536 /// v.swap(1, 3);
537537 /// assert!(v == ["a", "d", "c", "b"]);
@@ -551,7 +551,7 @@ pub trait SliceExt {
551551 ///
552552 /// # Examples
553553 ///
554- /// ```rust
554+ /// ```
555555 /// let mut v = [1, 2, 3, 4, 5, 6];
556556 ///
557557 /// // scoped to restrict the lifetime of the borrows
@@ -580,7 +580,7 @@ pub trait SliceExt {
580580 ///
581581 /// # Examples
582582 ///
583- /// ```rust
583+ /// ```
584584 /// let mut v = [1, 2, 3];
585585 /// v.reverse();
586586 /// assert!(v == [3, 2, 1]);
@@ -612,7 +612,7 @@ pub trait SliceExt {
612612 ///
613613 /// # Examples
614614 ///
615- /// ```rust
615+ /// ```
616616 /// let v = [1, 2, 3];
617617 /// let mut perms = v.permutations();
618618 ///
@@ -623,7 +623,7 @@ pub trait SliceExt {
623623 ///
624624 /// Iterating through permutations one by one.
625625 ///
626- /// ```rust
626+ /// ```
627627 /// let v = [1, 2, 3];
628628 /// let mut perms = v.permutations();
629629 ///
@@ -640,7 +640,7 @@ pub trait SliceExt {
640640 ///
641641 /// # Examples
642642 ///
643- /// ```rust
643+ /// ```
644644 /// let mut dst = [0, 0, 0];
645645 /// let src = [1, 2];
646646 ///
@@ -660,7 +660,7 @@ pub trait SliceExt {
660660 ///
661661 /// # Examples
662662 ///
663- /// ```rust
663+ /// ```
664664 /// let mut v = [-5, 4, 1, -3, 2];
665665 ///
666666 /// v.sort();
@@ -682,7 +682,7 @@ pub trait SliceExt {
682682 /// uniquely determined position; the second and third are not
683683 /// found; the fourth could match any position in `[1,4]`.
684684 ///
685- /// ```rust
685+ /// ```
686686 /// let s = [0, 1, 1, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55];
687687 /// let s = s.as_slice();
688688 ///
@@ -709,7 +709,7 @@ pub trait SliceExt {
709709 ///
710710 /// # Examples
711711 ///
712- /// ```rust
712+ /// ```
713713 /// let v: &mut [_] = &mut [0, 1, 2];
714714 /// v.next_permutation();
715715 /// let b: &mut [_] = &mut [0, 2, 1];
@@ -729,7 +729,7 @@ pub trait SliceExt {
729729 ///
730730 /// # Examples
731731 ///
732- /// ```rust
732+ /// ```
733733 /// let v: &mut [_] = &mut [1, 0, 2];
734734 /// v.prev_permutation();
735735 /// let b: &mut [_] = &mut [0, 2, 1];
0 commit comments