Skip to content

Commit

Permalink
Merge pull request #2717 from helixbass/ch11-01-writing-tests-past-te…
Browse files Browse the repository at this point in the history
…nse-led

Past-tensify "lead" -> "led"
  • Loading branch information
steveklabnik authored May 9, 2021
2 parents f032cf9 + 9e4730d commit 55a2648
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ch11-01-writing-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ more conveniently. These macros compare two arguments for equality or
inequality, respectively. They’ll also print the two values if the assertion
fails, which makes it easier to see *why* the test failed; conversely, the
`assert!` macro only indicates that it got a `false` value for the `==`
expression, not the values that lead to the `false` value.
expression, not the values that led to the `false` value.

In Listing 11-7, we write a function named `add_two` that adds `2` to its
parameter and returns the result. Then we test this function using the
Expand Down

0 comments on commit 55a2648

Please sign in to comment.