]> git.lizzy.rs Git - rust.git/commitdiff
Fix article in Result.map and Result.map_err documentation
authorDanilo Bargen <mail@dbrgn.ch>
Wed, 11 Nov 2015 23:01:55 +0000 (00:01 +0100)
committerDanilo Bargen <mail@dbrgn.ch>
Wed, 11 Nov 2015 23:02:56 +0000 (00:02 +0100)
src/libcore/result.rs

index c111ea8dce6672280c1654d9ffb1958827aca05e..71219155cc39fffb14b24bdc3864b8bbeffb993e 100644 (file)
@@ -456,7 +456,7 @@ pub fn as_mut_slice(&mut self) -> &mut [T] {
     // Transforming contained values
     /////////////////////////////////////////////////////////////////////////
 
-    /// Maps a `Result<T, E>` to `Result<U, E>` by applying a function to an
+    /// Maps a `Result<T, E>` to `Result<U, E>` by applying a function to a
     /// contained `Ok` value, leaving an `Err` value untouched.
     ///
     /// This function can be used to compose the results of two functions.
@@ -484,7 +484,7 @@ pub fn map<U, F: FnOnce(T) -> U>(self, op: F) -> Result<U,E> {
         }
     }
 
-    /// Maps a `Result<T, E>` to `Result<T, F>` by applying a function to an
+    /// Maps a `Result<T, E>` to `Result<T, F>` by applying a function to a
     /// contained `Err` value, leaving an `Ok` value untouched.
     ///
     /// This function can be used to pass through a successful result while handling