Skip to content

Commit

Permalink
Fix a grammatial error in ch11-01-writing-tests.md
Browse files Browse the repository at this point in the history
  • Loading branch information
shinmili authored Mar 10, 2024
1 parent 19c40bf commit 6192fd5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ch11-01-writing-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<span class="filename">Filename: src/lib.rs</span>

Expand Down

0 comments on commit 6192fd5

Please sign in to comment.