From ba3bba823918c5c1183bea848c41ceefc0da0e9f Mon Sep 17 00:00:00 2001 From: funkill2 Date: Thu, 12 Sep 2019 12:40:33 +0300 Subject: [PATCH] added quotes in unit_testing --- src/testing/unit_testing.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/testing/unit_testing.md b/src/testing/unit_testing.md index a2965d998e..cd87706640 100644 --- a/src/testing/unit_testing.md +++ b/src/testing/unit_testing.md @@ -70,8 +70,10 @@ failures: test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out ``` -## Tests and ? -None of the previous unit test examples had a return type. But in Rust 2018, your unit tests can return Result<()>, which lets you use `?` in them! This can make them much more concise. +## Tests and `?` +None of the previous unit test examples had a return type. But in Rust 2018, +your unit tests can return `Result<()>`, which lets you use `?` in them! This +can make them much more concise. ```rust,editable fn sqrt(number: f64) -> Result { @@ -95,7 +97,7 @@ mod tests { } ``` -See [The Edition Guide][editionguide] for more details. +See ["The Edition Guide"][editionguide] for more details. ## Testing panics