diff --git a/src/error/option_unwrap/question_mark.md b/src/error/option_unwrap/question_mark.md index a8483567d3..082b416eb0 100644 --- a/src/error/option_unwrap/question_mark.md +++ b/src/error/option_unwrap/question_mark.md @@ -5,7 +5,7 @@ use the `?` operator. If `x` is an `Option`, then evaluating `x?` will return the underlying value if `x` is `Some`, otherwise it will terminate whatever function is being executed and return `None`. -```rust,editable +```rust,ignore fn next_birthday(current_age: Option) -> Option { // If `current_age` is `None`, this returns `None`. // If `current_age` is `Some`, the inner `u8` value + 1