Skip to content

Commit

Permalink
add details to ch 7
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhoffa committed Nov 26, 2024
1 parent deada3b commit 213b7de
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ Encourage questions about any points that feel unclear.

- **Package**: A Cargo feature that lets you build, test and share crates. Defined by a `Cargo.toml` file.
- **Crate**: A tree of modules that produces a library or executable. Rust's compilation unit.
- **Binary crate**: An executable with a `main` function as an entry point.
- **Library crate**: A crate that can be used by other crates.
- **Module**: A way to organize code and control scope and visibility.
- **Paths**: A way of naming an item, such as a struct, function, or module.

Expand All @@ -41,7 +43,7 @@ $ cd my_project
- A library crate can be used by other crates, and does not need a `main` entry point.

# Working with Modules
## Backyard example
## Control Scope and Privacy with Modules
- Check out the backyard example!

## Accessing Module Items
Expand Down

0 comments on commit 213b7de

Please sign in to comment.