]> git.lizzy.rs Git - rust.git/commitdiff
fix missing Panics tag and missing period
authorLetheed <dev@daweb.se>
Thu, 10 Dec 2015 13:20:32 +0000 (14:20 +0100)
committerLetheed <dev@daweb.se>
Thu, 10 Dec 2015 13:20:32 +0000 (14:20 +0100)
src/libcore/option.rs
src/libcore/result.rs

index 209cebeaf1bc322d8d6769b7825b0052c7014521..c04015fc0ab7e376668ed27634d3e9ad31dcb93a 100644 (file)
@@ -309,7 +309,7 @@ pub fn as_mut_slice(&mut self) -> &mut [T] {
     // Getting to contained values
     /////////////////////////////////////////////////////////////////////////
 
-    /// Unwraps an option, yielding the content of a `Some`
+    /// Unwraps an option, yielding the content of a `Some`.
     ///
     /// # Panics
     ///
index 37c40f96b0f7136e4b8bf913c9e8762b1ede5ee5..9fe3c2d2aa28503ad84acd718285d924615d87a1 100644 (file)
@@ -744,6 +744,8 @@ pub fn unwrap(self) -> T {
 
     /// 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`.
     ///