Skip to content

Commit 63bbdc1

Browse files
committed
Fix wording for Option<T>.unwrap. Fixes #23713
1 parent f7453f9 commit 63bbdc1

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
@@ -331,7 +331,7 @@ impl<T> Option<T> {
331331
}
332332
}
333333

334-
/// Returns the inner `T` of a `Some(T)`.
334+
/// Moves the value `v` out of the `Option<T>` if the content of the `Option<T>` is a `Some(v)`.
335335
///
336336
/// # Panics
337337
///

0 commit comments

Comments
 (0)