From db06f8e97850831fbd5bb6957b71d6febfb784df Mon Sep 17 00:00:00 2001 From: AndreiSipos Date: Mon, 1 May 2017 16:18:36 +0300 Subject: [PATCH] ch11: corrected minor typo --- second-edition/src/ch11-01-writing-tests.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/second-edition/src/ch11-01-writing-tests.md b/second-edition/src/ch11-01-writing-tests.md index 04b9463d1..facbf15fe 100644 --- a/second-edition/src/ch11-01-writing-tests.md +++ b/second-edition/src/ch11-01-writing-tests.md @@ -614,7 +614,7 @@ outside that range panics. We can do this by adding another attribute, `should_panic`, to our test function. This attribute makes a test pass if the code inside the function -panics, and the test will fail if the code inside the function does non panic. +panics, and the test will fail if the code inside the function does not panic. Listing 11-8 shows how we'd write a test that checks the error conditions of `Guess::new` happen when we expect: