Skip to content

Commit 8a8918c

Browse files
authored
Merge pull request #1926 from santoshxshrestha/patch-1
The example is not meant to be compiled. Changed the code block ann…
2 parents 53b14f4 + af68928 commit 8a8918c

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)