Update src/libcore/option.rs

Co-authored-by: Steve Klabnik <steve@steveklabnik.com>
This commit is contained in:
Faris Sufyan 2020-05-13 21:05:53 +08:00 committed by GitHub
parent 46e9cbea3a
commit 4588c26e53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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> {