Skip to content

Commit 99987a8

Browse files
committed
Rollup merge of rust-lang#27091 - steveklabnik:doc_tests_glob, r=Gankro
Globs used to be a feature you'd turn on, but now they're not, so this sounds a bit odd.
2 parents 2ea8778 + d0e1b06 commit 99987a8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/doc/trpl/testing.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,11 +250,10 @@ that our tests are entirely left out of a normal build.
250250

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

256256
```rust,ignore
257-
258257
pub fn add_two(a: i32) -> i32 {
259258
a + 2
260259
}

0 commit comments

Comments
 (0)