Skip to content

Commit bfbc296

Browse files
committed
missing doc feature
1 parent 86599e0 commit bfbc296

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

library/core/src/option.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,6 +1232,8 @@ impl<T> Option<T> {
12321232
/// # Examples
12331233
///
12341234
/// ```
1235+
/// #![feature(result_option_map_or_default)]
1236+
///
12351237
/// let x: Option<&str> = Some("hi");
12361238
/// let y: Option<&str> = None;
12371239
///

library/core/src/result.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -836,6 +836,8 @@ impl<T, E> Result<T, E> {
836836
/// # Examples
837837
///
838838
/// ```
839+
/// #![feature(result_option_map_or_default)]
840+
///
839841
/// let x: Result<_, &str> = Ok("foo");
840842
/// let y: Result<&str, _> = Err("bar");
841843
///

0 commit comments

Comments
 (0)