about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexander Clausen <a.clausen@fz-juelich.de>2022-08-25 14:10:55 +0200
committerGitHub <noreply@github.com>2022-08-25 14:10:55 +0200
commit61aa4efbf15b69c7d41e6c267881d4c336ebdd4a (patch)
treed00dbd8190cb6d2ad86fdaa47c8b5abfb26761bb
parent79a439a48afbb96f764d0decdda77bb3f87902c3 (diff)
downloadrust-61aa4efbf15b69c7d41e6c267881d4c336ebdd4a.tar.gz
rust-61aa4efbf15b69c7d41e6c267881d4c336ebdd4a.zip
uninit_vec: Vec::spare_capacity_mut is stable
Quick documentation fix: `Vec::spare_capacity_mut` no longer needs nightly.
-rw-r--r--clippy_lints/src/uninit_vec.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/uninit_vec.rs b/clippy_lints/src/uninit_vec.rs
index 9f4c5555f11..9a41603f2f4 100644
--- a/clippy_lints/src/uninit_vec.rs
+++ b/clippy_lints/src/uninit_vec.rs
@@ -45,7 +45,7 @@ declare_clippy_lint! {
     ///    let mut vec: Vec<MaybeUninit<T>> = Vec::with_capacity(1000);
     ///    vec.set_len(1000);  // `MaybeUninit` can be uninitialized
     ///    ```
-    /// 3. If you are on nightly, `Vec::spare_capacity_mut()` is available:
+    /// 3. If you are on 1.60.0 or later, `Vec::spare_capacity_mut()` is available:
     ///    ```rust,ignore
     ///    let mut vec: Vec<u8> = Vec::with_capacity(1000);
     ///    let remaining = vec.spare_capacity_mut();  // `&mut [MaybeUninit<u8>]`