Fix in-line code sample backtick formatting

pull/55/head
szTheory 4 years ago committed by GitHub
parent 9740193c03
commit a7c1f86b45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3999,7 +3999,7 @@ fn main() {
}
```
The message is: `thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src\main.rs:2:32`. We're not sure if it was the first `.unwrap()` or the second `.unwrap()` until we check the line. It would be better to check the length and also to not unwrap. But with `.expect()` at least it will be a *little* better. Here it is with `.expect()`:
The message is: ``thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src\main.rs:2:32``. We're not sure if it was the first `.unwrap()` or the second `.unwrap()` until we check the line. It would be better to check the length and also to not unwrap. But with `.expect()` at least it will be a *little* better. Here it is with `.expect()`:
```rust
fn try_two_unwraps(input: Vec<Option<i32>>) {

Loading…
Cancel
Save