ch11: corrected minor typo

This commit is contained in:
AndreiSipos
2017-05-01 16:18:36 +03:00
parent da7d1e9650
commit db06f8e978

View File

@@ -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: