Auto merge of #30298 - Letheed:docpatch, r=sanxiyn

Missing Panics tag and missing period in the documentation of `fn expect(…)` for `Option` and `Result`.
This commit is contained in:
bors 2015-12-10 16:28:53 +00:00
commit 41a33852b8
2 changed files with 3 additions and 1 deletions

View File

@ -309,7 +309,7 @@ impl<T> Option<T> {
// Getting to contained values
/////////////////////////////////////////////////////////////////////////
/// Unwraps an option, yielding the content of a `Some`
/// Unwraps an option, yielding the content of a `Some`.
///
/// # Panics
///

View File

@ -744,6 +744,8 @@ impl<T, E: fmt::Debug> Result<T, E> {
/// Unwraps a result, yielding the content of an `Ok`.
///
/// # Panics
///
/// Panics if the value is an `Err`, with a panic message including the
/// passed message, and the content of the `Err`.
///