Skip to content

Commit

Permalink
Upstream changes to ch7 to consider sending to nostarch
Browse files Browse the repository at this point in the history
  • Loading branch information
carols10cents committed Aug 13, 2024
1 parent 75bc555 commit 48a3c17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nostarch/chapter07.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ pub mod garden;
fn main() {
let plant = Asparagus {};
println!("I'm growing {:?}!", plant);
println!("I'm growing {plant:?}!");
}
```

Expand Down Expand Up @@ -563,7 +563,7 @@ and `fn add_to_waitlist` lets us call the function from
`eat_at_restaurant`

Now the code will compile! To see why adding the `pub` keyword lets us use
these paths in `add_to_waitlist` with respect to the privacy rules, let’s look
these paths in `eat_at_restaurant` with respect to the privacy rules, let’s look
at the absolute and the relative paths.

In the absolute path, we start with `crate`, the root of our crate’s module
Expand Down

0 comments on commit 48a3c17

Please sign in to comment.