Skip to content

Commit

Permalink
fix book: refer to add_two as "tested function"
Browse files Browse the repository at this point in the history
rather than "test function", which would be `it_works`
  • Loading branch information
das-g committed Jan 24, 2017
1 parent fe597dc commit c4c86dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/book/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ currently trying to run the tests. This can save compile time, and also ensures
that our tests are entirely left out of a normal build.

The second change is the `use` declaration. Because we're in an inner module,
we need to bring our test function into scope. This can be annoying if you have
we need to bring the tested function into scope. This can be annoying if you have
a large module, and so this is a common use of globs. Let's change our
`src/lib.rs` to make use of it:

Expand Down

0 comments on commit c4c86dd

Please sign in to comment.