Skip to content

Commit 9b5b0cd

Browse files
committed
Fix article in Result.map and Result.map_err documentation
1 parent b8eaa16 commit 9b5b0cd

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)