Skip to content

Commit

Permalink
Update src/libcore/option.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Steve Klabnik <steve@steveklabnik.com>
  • Loading branch information
Dolpheyn and steveklabnik committed May 13, 2020
1 parent 46e9cbe commit 4588c26
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libcore/option.rs
Expand Up @@ -1363,6 +1363,7 @@ impl<T> From<T> for Option<T> {
///
/// ```
/// let o: Option<u8> = Option::from(67);
///
/// assert_eq!(Some(67), o);
/// ```
fn from(val: T) -> Option<T> {
Expand Down

0 comments on commit 4588c26

Please sign in to comment.