From a7c1f86b459cdd6e0ed396bd40b6343a16a7ed78 Mon Sep 17 00:00:00 2001 From: szTheory Date: Sun, 2 Aug 2020 20:21:47 +0000 Subject: [PATCH] Fix in-line code sample backtick formatting --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 738b616..6bae608 100644 --- a/README.md +++ b/README.md @@ -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>) {