Skip to content

Commit 3cb9092

Browse files
committed
Fixed explanation mistake in comment
1 parent 6709bee commit 3cb9092

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/error/option_unwrap/question_mark.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function is being executed and return `None`.
88
```rust,editable
99
fn next_birthday(current_age: Option<u8>) -> Option<String> {
1010
// If `current_age` is `None`, this returns `None`.
11-
// If `current_age` is `Some`, the inner `u8` gets assigned to `next_age`
11+
// If `current_age` is `Some`, the inner `u8` + 1 gets assigned to `next_age`
1212
let next_age: u8 = current_age? + 1;
1313
Some(format!("Next year I will be {}", next_age))
1414
}

0 commit comments

Comments
 (0)