mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
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:
commit
41a33852b8
@ -309,7 +309,7 @@ impl<T> Option<T> {
|
|||||||
// Getting to contained values
|
// Getting to contained values
|
||||||
/////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
/// Unwraps an option, yielding the content of a `Some`
|
/// Unwraps an option, yielding the content of a `Some`.
|
||||||
///
|
///
|
||||||
/// # Panics
|
/// # Panics
|
||||||
///
|
///
|
||||||
|
@ -744,6 +744,8 @@ impl<T, E: fmt::Debug> Result<T, E> {
|
|||||||
|
|
||||||
/// Unwraps a result, yielding the content of an `Ok`.
|
/// Unwraps a result, yielding the content of an `Ok`.
|
||||||
///
|
///
|
||||||
|
/// # Panics
|
||||||
|
///
|
||||||
/// Panics if the value is an `Err`, with a panic message including the
|
/// Panics if the value is an `Err`, with a panic message including the
|
||||||
/// passed message, and the content of the `Err`.
|
/// passed message, and the content of the `Err`.
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user