Update inline_call assist doc example
This commit is contained in:
@@ -330,6 +330,15 @@ pub mod option {
|
||||
#[lang = "Some"]
|
||||
Some(T),
|
||||
}
|
||||
|
||||
impl<T> Option<T> {
|
||||
pub const fn unwrap(self) -> T {
|
||||
match self {
|
||||
Some(val) => val,
|
||||
None => panic!("called `Option::unwrap()` on a `None` value"),
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// endregion:option
|
||||
|
||||
|
||||
Reference in New Issue
Block a user