Skip to content

Commit a2fa75b

Browse files
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`
2 parents e305b99 + c4c86dd commit a2fa75b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/book/testing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ currently trying to run the tests. This can save compile time, and also ensures
384384
that our tests are entirely left out of a normal build.
385385

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

0 commit comments

Comments
 (0)