Rollup merge of #39278 - das-g:patch-1, r=steveklabnik
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`
This commit is contained in:
commit
a2fa75b705
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue