We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28b948f commit a931060Copy full SHA for a931060
library/core/src/option.rs
@@ -601,8 +601,6 @@ impl<T> Option<T> {
601
/// # Example
602
///
603
/// ```
604
- /// #![feature(option_insert)]
605
- ///
606
/// let mut opt = None;
607
/// let val = opt.insert(1);
608
/// assert_eq!(*val, 1);
@@ -613,7 +611,7 @@ impl<T> Option<T> {
613
611
/// assert_eq!(opt.unwrap(), 3);
614
612
615
#[inline]
616
- #[unstable(feature = "option_insert", reason = "newly added", issue = "78271")]
+ #[stable(feature = "option_insert", since = "1.53.0")]
617
pub fn insert(&mut self, value: T) -> &mut T {
618
*self = Some(value);
619
0 commit comments