Skip to content

Commit 8844190

Browse files
committed
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
2 parents a8b6697 + 9b5b0cd commit 8844190

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/result.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ impl<T, E> Result<T, E> {
456456
// Transforming contained values
457457
/////////////////////////////////////////////////////////////////////////
458458

459-
/// Maps a `Result<T, E>` to `Result<U, E>` by applying a function to an
459+
/// Maps a `Result<T, E>` to `Result<U, E>` by applying a function to a
460460
/// contained `Ok` value, leaving an `Err` value untouched.
461461
///
462462
/// This function can be used to compose the results of two functions.
@@ -484,7 +484,7 @@ impl<T, E> Result<T, E> {
484484
}
485485
}
486486

487-
/// Maps a `Result<T, E>` to `Result<T, F>` by applying a function to an
487+
/// Maps a `Result<T, E>` to `Result<T, F>` by applying a function to a
488488
/// contained `Err` value, leaving an `Ok` value untouched.
489489
///
490490
/// This function can be used to pass through a successful result while handling

0 commit comments

Comments
 (0)