Skip to content

Commit 2fd82d7

Browse files
committed
fix irrelavant comments
1 parent 055d902 commit 2fd82d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/error/result/result_map.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ use std::num::ParseIntError;
5656
5757
// As with `Option`, we can use combinators such as `map()`.
5858
// This function is otherwise identical to the one above and reads:
59-
// Modify n if the value is valid, otherwise pass on the error.
59+
// Multiply if both values can be parsed from str, otherwise pass on the error.
6060
fn multiply(first_number_str: &str, second_number_str: &str) -> Result<i32, ParseIntError> {
6161
first_number_str.parse::<i32>().and_then(|first_number| {
6262
second_number_str.parse::<i32>().map(|second_number| first_number * second_number)

0 commit comments

Comments
 (0)