Skip to content

Commit b50df6d

Browse files
committed
Stabilize core::slice::fill_with
1 parent 18ec4a9 commit b50df6d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

library/core/src/slice/mod.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -2706,13 +2706,12 @@ impl<T> [T] {
27062706
/// # Examples
27072707
///
27082708
/// ```
2709-
/// #![feature(slice_fill_with)]
2710-
///
27112709
/// let mut buf = vec![1; 10];
27122710
/// buf.fill_with(Default::default);
27132711
/// assert_eq!(buf, vec![0; 10]);
27142712
/// ```
2715-
#[unstable(feature = "slice_fill_with", issue = "79221")]
2713+
#[doc(alias = "memset")]
2714+
#[stable(feature = "slice_fill_with", since = "1.51.0")]
27162715
pub fn fill_with<F>(&mut self, mut f: F)
27172716
where
27182717
F: FnMut() -> T,

0 commit comments

Comments
 (0)