Skip to content

Commit af68928

Browse files
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.
1 parent 53b14f4 commit af68928

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/error/option_unwrap/question_mark.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use the `?` operator. If `x` is an `Option`, then evaluating `x?` will return
55
the underlying value if `x` is `Some`, otherwise it will terminate whatever
66
function is being executed and return `None`.
77

8-
```rust,editable
8+
```rust,ignore
99
fn next_birthday(current_age: Option<u8>) -> Option<String> {
1010
// If `current_age` is `None`, this returns `None`.
1111
// If `current_age` is `Some`, the inner `u8` value + 1

0 commit comments

Comments
 (0)