mirror of
https://github.com/m-lamonaca/dev-notes.git
synced 2025-06-08 10:47:13 +00:00
Make various corrections to notes
This commit is contained in:
parent
411d740dd4
commit
23c1d6578f
16 changed files with 82 additions and 79 deletions
|
@ -115,7 +115,7 @@ use <crate_name>::module as alias; // import module w/ aliass
|
|||
pub use <crate_name>::module; // re-exporting (import and make available to others)
|
||||
|
||||
use <crate_name>::module::{self, Item}; // import multiple paths
|
||||
use use <crate_name>::module::*; // import all public items (Glob operator)
|
||||
pub use <crate_name>::module::*; // import all public items (Glob operator)
|
||||
|
||||
module::function(); // use func w/ shorter path
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue