We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b9eb606 + 6c2b340 commit db1c761Copy full SHA for db1c761
src/libcollections/vec.rs
@@ -440,14 +440,18 @@ impl<T> Vec<T> {
440
}
441
442
/// Extracts a slice containing the entire vector.
443
+ ///
444
+ /// Equivalent to `&s[..]`.
445
#[inline]
446
#[unstable(feature = "convert",
447
reason = "waiting on RFC revision")]
448
pub fn as_slice(&self) -> &[T] {
449
self
450
451
- /// Deprecated: use `&mut s[..]` instead.
452
+ /// Extracts a mutable slice of the entire vector.
453
454
+ /// Equivalent to `&mut s[..]`.
455
456
457
0 commit comments