about summary refs log tree commit diff
path: root/library/alloc/src
diff options
context:
space:
mode:
authorAlona Enraght-Moony <code@alona.page>2025-02-24 23:34:46 +0000
committerAlona Enraght-Moony <code@alona.page>2025-02-24 23:34:46 +0000
commit78615ff2ae2813a1fd4e26ab1d9f7e914f6c7902 (patch)
tree7d3aa7e74d358244c2b00ba3689cc156ff22407d /library/alloc/src
parent617aad8c2e8783f6df8e5d1f8bb1e4bcdc70aa7b (diff)
downloadrust-78615ff2ae2813a1fd4e26ab1d9f7e914f6c7902.tar.gz
rust-78615ff2ae2813a1fd4e26ab1d9f7e914f6c7902.zip
Stablize `string_extend_from_within`
Diffstat (limited to 'library/alloc/src')
-rw-r--r--library/alloc/src/string.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/library/alloc/src/string.rs b/library/alloc/src/string.rs
index 9446afd4b24..88227688ede 100644
--- a/library/alloc/src/string.rs
+++ b/library/alloc/src/string.rs
@@ -1137,7 +1137,6 @@ impl String {
     /// # Examples
     ///
     /// ```
-    /// #![feature(string_extend_from_within)]
     /// let mut string = String::from("abcde");
     ///
     /// string.extend_from_within(2..);
@@ -1150,7 +1149,7 @@ impl String {
     /// assert_eq!(string, "abcdecdeabecde");
     /// ```
     #[cfg(not(no_global_oom_handling))]
-    #[unstable(feature = "string_extend_from_within", issue = "103806")]
+    #[stable(feature = "string_extend_from_within", since = "CURRENT_RUSTC_VERSION")]
     pub fn extend_from_within<R>(&mut self, src: R)
     where
         R: RangeBounds<usize>,