Update src/libcore/option.rs
Co-authored-by: Steve Klabnik <steve@steveklabnik.com>
This commit is contained in:
parent
46e9cbea3a
commit
4588c26e53
@ -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> {
|
||||
|
Loading…
Reference in New Issue
Block a user