Skip to content

Commit

Permalink
Auto merge of #21609 - GarrettHeel:master, r=steveklabnik
Browse files Browse the repository at this point in the history
Now that it's no longer feature gated, add docs for wildcard syntax.
  • Loading branch information
bors committed Feb 6, 2015
2 parents 715f9a5 + 98c46c3 commit f3573aa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/doc/trpl/crates-and-modules.md
Expand Up @@ -551,6 +551,10 @@ module, we now have a `phrases::japanese::hello()` function and a
`phrases::japanese::farewells::goodbye()`. Our internal organization doesn't
define our external interface.
Here we have a `pub use` for each function we want to bring into the
`japanese` scope. We could alternatively use the wildcard syntax to include
everything from `greetings` into the current scope: `pub use self::greetings::*`.
Also, note that we `pub use`d before we declared our `mod`s. Rust requires that
`use` declarations go first.
Expand Down

0 comments on commit f3573aa

Please sign in to comment.