mirror of
https://github.com/rust-lang/book.git
synced 2026-11-30 20:14:32 -06:00
Reword summary bullet to fix #422
This commit is contained in:
@@ -18,8 +18,9 @@ you can choose whether those definitions are visible outside their module
|
||||
(public) or not (private). Here’s an overview of how modules work:
|
||||
|
||||
* You declare a new module with the keyword `mod`
|
||||
* By default, everything is set as private, but you can use the `pub` keyword
|
||||
to make the module public, and therefore visible outside of the namespace.
|
||||
* By default, everything is set as private (including modules). You can use the
|
||||
`pub` keyword to make a module public and therefore visible outside of its
|
||||
namespace.
|
||||
* The `use` keyword allows you to bring modules, or the definitions inside
|
||||
modules, into scope so that it’s easier to refer to them.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user