Skip to content

Commit

Permalink
More robust, not safer
Browse files Browse the repository at this point in the history
  • Loading branch information
carols10cents committed Nov 28, 2016
1 parent b45eae6 commit 093935f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ch11-01-writing-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ this code happened to run and did not cause a `panic!`, this test would fail.
didn't fail for a different reason than the one you were expecting. To help
with this, an optional `expected` parameter can be added to the `should_panic`
attribute. The test harness will make sure that the failure message contains
the provided text. A safer version of Listing 11-1 would be the following, in
Listing 11-2:
the provided text. A more robust version of Listing 11-1 would be the
following, in Listing 11-2:

Filename: src/lib.rs

Expand Down

0 comments on commit 093935f

Please sign in to comment.