diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2015-11-12 13:18:51 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-11-12 13:18:51 +0530 |
| commit | 8844190801a8f9178ed593d3cd21c5cfbc8d660e (patch) | |
| tree | 38fbd7464929b1b4eb8dfeba8f1a96107fe5ca4d /src | |
| parent | a8b6697a3278444c0f45703ee62a042ab177e352 (diff) | |
| parent | 9b5b0cd9b98c3540301ddacdd7882061db31a8ae (diff) | |
| download | rust-8844190801a8f9178ed593d3cd21c5cfbc8d660e.tar.gz rust-8844190801a8f9178ed593d3cd21c5cfbc8d660e.zip | |
Rollup merge of #29787 - dbrgn:docs-fix, r=steveklabnik
Fix usage of wrong article in `Result` docs. This is my first rust PR, if something about the process is wrong let me know. As this is a documentation change, I believe the correct highfive line to use is the following: r? @steveklabnik
Diffstat (limited to 'src')
| -rw-r--r-- | src/libcore/result.rs | 4 |
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 |
