about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDanilo Bargen <mail@dbrgn.ch>2015-11-12 00:01:55 +0100
committerDanilo Bargen <mail@dbrgn.ch>2015-11-12 00:02:56 +0100
commit9b5b0cd9b98c3540301ddacdd7882061db31a8ae (patch)
tree795ab9c359a8f195212309c76451b4450d08687e
parentb8eaa1605a40978c65ebf255dd2e16ef729193c2 (diff)
downloadrust-9b5b0cd9b98c3540301ddacdd7882061db31a8ae.tar.gz
rust-9b5b0cd9b98c3540301ddacdd7882061db31a8ae.zip
Fix article in Result.map and Result.map_err documentation
-rw-r--r--src/libcore/result.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/result.rs b/src/libcore/result.rs
index c111ea8dce6..71219155cc3 100644
--- a/src/libcore/result.rs
+++ b/src/libcore/result.rs
@@ -456,7 +456,7 @@ impl<T, E> Result<T, E> {
     // 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 @@ impl<T, E> Result<T, 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