From 6192fd505d8b3c34ad74a8c9298f82e1a98360f4 Mon Sep 17 00:00:00 2001 From: shinmili Date: Sun, 10 Mar 2024 10:00:22 +0900 Subject: [PATCH] Fix a grammatial error in ch11-01-writing-tests.md --- src/ch11-01-writing-tests.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ch11-01-writing-tests.md b/src/ch11-01-writing-tests.md index df09aadc84..7be7b60f0a 100644 --- a/src/ch11-01-writing-tests.md +++ b/src/ch11-01-writing-tests.md @@ -129,9 +129,9 @@ Then run `cargo test` again. The output now shows `exploration` instead of Now we’ll add another test, but this time we’ll make a test that fails! Tests fail when something in the test function panics. Each test is run in a new thread, and when the main thread sees that a test thread has died, the test is -marked as failed. In Chapter 9, we talked about how the simplest way to panic -is to call the `panic!` macro. Enter the new test as a function named -`another`, so your *src/lib.rs* file looks like Listing 11-3. +marked as failed. In Chapter 9, we learned the simplest way to panic is to call +the `panic!` macro. Enter the new test as a function named `another`, so your +*src/lib.rs* file looks like Listing 11-3. Filename: src/lib.rs