Skip to content

Commit efe23c4

Browse files
authored
Merge pull request #1676 from woofyzhao/fix_comment_multiply
fix irrelevant comments
2 parents 055d902 + 2fd82d7 commit efe23c4

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)