We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 85a7fc8 + 4a454d6 commit 0b1427eCopy full SHA for 0b1427e
src/libstd/primitive_docs.rs
@@ -550,7 +550,6 @@ mod prim_array { }
550
#[doc(alias = "[")]
551
#[doc(alias = "]")]
552
#[doc(alias = "[]")]
553
-//
554
/// A dynamically-sized view into a contiguous sequence, `[T]`.
555
///
556
/// *[See also the `std::slice` module](slice/index.html).*
@@ -572,11 +571,11 @@ mod prim_array { }
572
571
/// points to:
573
574
/// ```
575
-/// let x = &mut [1, 2, 3];
+/// let mut x = [1, 2, 3];
+/// let x = &mut x[..]; // Take a full slice of `x`.
576
/// x[1] = 7;
577
/// assert_eq!(x, &[1, 7, 3]);
578
579
-///
580
#[stable(feature = "rust1", since = "1.0.0")]
581
mod prim_slice { }
582
0 commit comments