mirror of
https://github.com/rust-lang/rust
synced 2024-09-15 22:50:55 +00:00
Rollup merge of #23862 - jviereck:fix_23713_v2, r=steveklabnik
Based on the comment from @apasel422 in https://github.com/rust-lang/rust/pull/23791#issuecomment-87095298. Where @apasel422 proposed ``` Moves the value out of the option if it is `Some`, or panics if it is `None`. ``` I include in this PR the version ``` Moves the value `v` out of the `Option` if it is `Some(v)`, or panics if it is `None`. ``` which - is a little bit more precise about what value is actually returned - uses `Option` over just "option" in the part `out of the [Option] r? @steveklabnik, @apasel422
This commit is contained in:
commit
8225a1cf90
|
@ -333,7 +333,7 @@ pub fn expect(self, msg: &str) -> T {
|
|||
}
|
||||
}
|
||||
|
||||
/// Moves the value `v` out of the `Option<T>` if the content of the `Option<T>` is a `Some(v)`.
|
||||
/// Moves the value `v` out of the `Option<T>` if it is `Some(v)`.
|
||||
///
|
||||
/// # Panics
|
||||
///
|
||||
|
|
Loading…
Reference in a new issue