about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorLetheed <dev@daweb.se>2015-12-10 14:20:32 +0100
committerLetheed <dev@daweb.se>2015-12-10 14:20:32 +0100
commitaf4414bd30b75202fd93c369dc5eac372e07b203 (patch)
tree2246a52a31c108343dd08f296175895594e22a50 /src/libcore
parent8eee0efd1f3f43e379abf7dfcb190bd60700eeca (diff)
fix missing Panics tag and missing period
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/option.rs2
-rw-r--r--src/libcore/result.rs2
2 files changed, 3 insertions, 1 deletions
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<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
     ///
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<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`.
     ///