We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 055d902 commit 2fd82d7Copy full SHA for 2fd82d7
src/error/result/result_map.md
@@ -56,7 +56,7 @@ use std::num::ParseIntError;
56
57
// As with `Option`, we can use combinators such as `map()`.
58
// This function is otherwise identical to the one above and reads:
59
-// Modify n if the value is valid, otherwise pass on the error.
+// Multiply if both values can be parsed from str, otherwise pass on the error.
60
fn multiply(first_number_str: &str, second_number_str: &str) -> Result<i32, ParseIntError> {
61
first_number_str.parse::<i32>().and_then(|first_number| {
62
second_number_str.parse::<i32>().map(|second_number| first_number * second_number)
0 commit comments