Skip to content

Commit

Permalink
Remove maybe_uninit_extra feature from Vec docs
Browse files Browse the repository at this point in the history
In `Vec`, two doc tests are using `MaybeUninit::write` , stabilized in 1.55. This makes docs' usage of `maybe_uninit_extra` feature unnecessary.
  • Loading branch information
Shadlock0133 authored Dec 24, 2021
1 parent aad4f10 commit 584e88d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/alloc/src/vec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2043,7 +2043,7 @@ impl<T, A: Allocator> Vec<T, A> {
/// # Examples
///
/// ```
/// #![feature(vec_spare_capacity, maybe_uninit_extra)]
/// #![feature(vec_spare_capacity)]
///
/// // Allocate vector big enough for 10 elements.
/// let mut v = Vec::with_capacity(10);
Expand Down Expand Up @@ -2102,7 +2102,7 @@ impl<T, A: Allocator> Vec<T, A> {
/// # Examples
///
/// ```
/// #![feature(vec_split_at_spare, maybe_uninit_extra)]
/// #![feature(vec_split_at_spare)]
///
/// let mut v = vec![1, 1, 2];
///
Expand Down

0 comments on commit 584e88d

Please sign in to comment.