From af68928c2db9ba4e29754c6fb04380a2c9535a0e Mon Sep 17 00:00:00 2001 From: Santosh Shrestha Date: Wed, 30 Apr 2025 00:59:02 +0545 Subject: [PATCH] The example is not meant to be compiled. Changed the code block annotation from editable to ignore to better reflect its purpose and avoid confusion. The next_birthday function is not meant to be compiled as there is missing main function. Changed the code block annotation from editable to ignore to better reflect its purpose and avoid confusion. --- src/error/option_unwrap/question_mark.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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