Skip to content

Commit

Permalink
Added feature attribute to example code in map_or_else doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanbakel committed Aug 29, 2018
1 parent 6ff4f79 commit 79408c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libcore/result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,7 @@ impl<T, E> Result<T, E> {
/// Basic usage:
///
/// ```
/// #![feature(result_map_or_else)]
/// let k = 21;
///
/// let x : Result<_, &str> = Ok("foo");
Expand Down

0 comments on commit 79408c3

Please sign in to comment.