Skip to content

Commit 22a46c9

Browse files
authored
Specify directories for test files in testing.md
Following the [cargo docs](https://github.com/rust-lang/cargo/blob/master/src/doc/src/guide/tests.md)
1 parent aa28149 commit 22a46c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tutorial/testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ fn check_answer_validity() {
5656
}
5757
```
5858

59-
You can put this snippet of code in pretty much any file
59+
You can put this snippet of code in pretty much any file in `src/` or `tests/`
6060
and `cargo test` will find
6161
and run it.
6262
The key here is the `#[test]` attribute.

0 commit comments

Comments
 (0)