Skip to content

Commit 787556a

Browse files
committed
Auto merge of rust-lang#90265 - GuillaumeGomez:rollup-gx3ficp, r=GuillaumeGomez
Rollup of 5 pull requests Successful merges: - rust-lang#90017 (Add a couple tests for normalize under binder issues) - rust-lang#90079 (enable `i8mm` target feature on aarch64 and arm) - rust-lang#90233 (Tooltip overflow) - rust-lang#90257 (Changed slice.swap documentation for better readability) - rust-lang#90261 (Move back to linux builder on try builds) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2 parents 99fd223 + d71ba21 commit 787556a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/src/slice/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -553,9 +553,9 @@ impl<T> [T] {
553553
/// # Examples
554554
///
555555
/// ```
556-
/// let mut v = ["a", "b", "c", "d"];
557-
/// v.swap(1, 3);
558-
/// assert!(v == ["a", "d", "c", "b"]);
556+
/// let mut v = ["a", "b", "c", "d", "e"];
557+
/// v.swap(2, 4);
558+
/// assert!(v == ["a", "b", "e", "d", "c"]);
559559
/// ```
560560
#[stable(feature = "rust1", since = "1.0.0")]
561561
#[inline]

0 commit comments

Comments
 (0)