enclosed text that's supposed to be monospace into a ```text``` block.

pull/127/head
Francesco Urbani 3 years ago
parent 5b76f7c3ab
commit 0ed0d79295

@ -3556,7 +3556,11 @@ fn main() {
}
```
The message is: "thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src\main.rs:14:9".
The message is:
```text
"thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src\main.rs:14:9"
```
But we don't need to use `.unwrap()`. We can use a `match`. Then we can print the value we have `Some`, and not touch it if we have `None`. For example:

Loading…
Cancel
Save