Skip to content

Commit 8225a1c

Browse files
committed
Rollup merge of rust-lang#23862 - jviereck:fix_23713_v2, r=steveklabnik
Based on the comment from @apasel422 in rust-lang#23791 (comment). 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
2 parents b4457fb + 085bcfa commit 8225a1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/option.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ impl<T> Option<T> {
333333
}
334334
}
335335

336-
/// Moves the value `v` out of the `Option<T>` if the content of the `Option<T>` is a `Some(v)`.
336+
/// Moves the value `v` out of the `Option<T>` if it is `Some(v)`.
337337
///
338338
/// # Panics
339339
///

0 commit comments

Comments
 (0)