Skip to content

Commit 52eade1

Browse files
committed
Stabilize core::slice::fill
1 parent 28b86e0 commit 52eade1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

library/core/src/slice/mod.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -2581,14 +2581,12 @@ impl<T> [T] {
25812581
/// # Examples
25822582
///
25832583
/// ```
2584-
/// #![feature(slice_fill)]
2585-
///
25862584
/// let mut buf = vec![0; 10];
25872585
/// buf.fill(1);
25882586
/// assert_eq!(buf, vec![1; 10]);
25892587
/// ```
25902588
#[doc(alias = "memset")]
2591-
#[unstable(feature = "slice_fill", issue = "70758")]
2589+
#[stable(feature = "slice_fill", since = "1.50.0")]
25922590
pub fn fill(&mut self, value: T)
25932591
where
25942592
T: Clone,

0 commit comments

Comments
 (0)