Skip to content

Commit 3eda905

Browse files
committed
Corrected feature status of Result::map_or_else
map_or_else is now correctly labelled unstable and points to the tracking issue on rust-lang/rust
1 parent 71b16d8 commit 3eda905

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/result.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ impl<T, E> Result<T, E> {
494494
/// assert_eq!(x.map_or_else(|e| k * 2, |v| v.len()), 42);
495495
/// ```
496496
#[inline]
497-
#[stable(feature = "result_map_or_else", since = "1.30.0")]
497+
#[unstable(feature = "result_map_or_else", issue = "53268")]
498498
pub fn map_or_else<U, M: FnOnce(T) -> U, F: FnOnce(E) -> U>(self, fallback: F, map: M) -> U {
499499
self.map(map).unwrap_or_else(fallback)
500500
}

0 commit comments

Comments
 (0)