diff --git a/src/libcore/option.rs b/src/libcore/option.rs index 209cebeaf1b..c04015fc0ab 100644 --- a/src/libcore/option.rs +++ b/src/libcore/option.rs @@ -309,7 +309,7 @@ impl Option { // Getting to contained values ///////////////////////////////////////////////////////////////////////// - /// Unwraps an option, yielding the content of a `Some` + /// Unwraps an option, yielding the content of a `Some`. /// /// # Panics /// diff --git a/src/libcore/result.rs b/src/libcore/result.rs index 37c40f96b0f..9fe3c2d2aa2 100644 --- a/src/libcore/result.rs +++ b/src/libcore/result.rs @@ -744,6 +744,8 @@ impl Result { /// 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`. ///