Skip to content

Commit

Permalink
Rollup merge of #39278 - das-g:patch-1, r=steveklabnik
Browse files Browse the repository at this point in the history
fix book: refer to `add_two` as "tested function"

refer to `add_two` as "tested function" rather than "test function", which would be `it_works`
  • Loading branch information
GuillaumeGomez committed Jan 25, 2017
2 parents e305b99 + c4c86dd commit a2fa75b
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 a2fa75b

Please sign in to comment.