Skip to content

Commit

Permalink
Clean up some wording around globs.
Browse files Browse the repository at this point in the history
Globs used to be a feature you'd turn on, but now they're not, so this sounds
a bit odd.
  • Loading branch information
steveklabnik committed Jul 17, 2015
1 parent b5dad7d commit d0e1b06
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/doc/trpl/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,11 +250,10 @@ 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
a large module, and so this is a common use of the `glob` feature. Let's change
our `src/lib.rs` to make use of it:
a large module, and so this is a common use of globs. Let's change our
`src/lib.rs` to make use of it:

```rust,ignore
pub fn add_two(a: i32) -> i32 {
a + 2
}
Expand Down

0 comments on commit d0e1b06

Please sign in to comment.