Skip to content

Commit 602bec2

Browse files
committed
Auto merge of #9374 - sk1p:patch-1, r=Jarcho
uninit_vec: Vec::spare_capacity_mut is stable Quick documentation fix: `Vec::spare_capacity_mut` no longer needs nightly. changelog: none
2 parents 21f103a + 61aa4ef commit 602bec2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/uninit_vec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ declare_clippy_lint! {
4545
/// let mut vec: Vec<MaybeUninit<T>> = Vec::with_capacity(1000);
4646
/// vec.set_len(1000); // `MaybeUninit` can be uninitialized
4747
/// ```
48-
/// 3. If you are on nightly, `Vec::spare_capacity_mut()` is available:
48+
/// 3. If you are on 1.60.0 or later, `Vec::spare_capacity_mut()` is available:
4949
/// ```rust,ignore
5050
/// let mut vec: Vec<u8> = Vec::with_capacity(1000);
5151
/// let remaining = vec.spare_capacity_mut(); // `&mut [MaybeUninit<u8>]`

0 commit comments

Comments
 (0)