Skip to content

Commit 46f27c9

Browse files
committed
Improve text of Option.unwrap()
Fixes rust-lang#9099
1 parent 776c17f commit 46f27c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/option.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ impl<T> Option<T> {
244244
}
245245
}
246246

247-
/// Moves a value out of an option type and returns it, consuming the `Option`.
247+
/// Returns the inner `T` of a `Some(T)`.
248248
///
249249
/// # Failure
250250
///

0 commit comments

Comments
 (0)