diff options
| author | Kivooeo <Kivooeo123@gmail.com> | 2025-08-15 16:42:21 +0000 |
|---|---|---|
| committer | Kivooeo <Kivooeo123@gmail.com> | 2025-08-15 16:42:21 +0000 |
| commit | 489940ee1d24a0a2bc388b465f171da9ab0cb16b (patch) | |
| tree | 908b4e83e48bdcf3dc9a79f7a2c6da756e91cfb8 /library/core/src | |
| parent | c018ae5389c49cc4bcb8343d80dd8e7323325410 (diff) | |
| download | rust-489940ee1d24a0a2bc388b465f171da9ab0cb16b.tar.gz rust-489940ee1d24a0a2bc388b465f171da9ab0cb16b.zip | |
stabilize array repeat
Diffstat (limited to 'library/core/src')
| -rw-r--r-- | library/core/src/array/mod.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/library/core/src/array/mod.rs b/library/core/src/array/mod.rs index b3a498570f9..e994fa00a23 100644 --- a/library/core/src/array/mod.rs +++ b/library/core/src/array/mod.rs @@ -41,8 +41,6 @@ pub use iter::IntoIter; /// /// Creating multiple copies of a `String`: /// ```rust -/// #![feature(array_repeat)] -/// /// use std::array; /// /// let string = "Hello there!".to_string(); @@ -50,7 +48,7 @@ pub use iter::IntoIter; /// assert_eq!(strings, ["Hello there!", "Hello there!"]); /// ``` #[inline] -#[unstable(feature = "array_repeat", issue = "126695")] +#[stable(feature = "array_repeat", since = "CURRENT_RUSTC_VERSION")] pub fn repeat<T: Clone, const N: usize>(val: T) -> [T; N] { from_trusted_iterator(repeat_n(val, N)) } |
