Skip to content

Commit

Permalink
Ch. 7: add a note about the need for pub in one more place
Browse files Browse the repository at this point in the history
Fixes #3447
  • Loading branch information
chriskrycho committed Apr 8, 2024
1 parent 3e96c36 commit 3dd1e24
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ from a new scope with `pub use`</span>

Before this change, external code would have to call the `add_to_waitlist`
function by using the path
`restaurant::front_of_house::hosting::add_to_waitlist()`. Now that this `pub
`restaurant::front_of_house::hosting::add_to_waitlist()`, which also would have
required the `front_of_house` module to be marked as `pub`. Now that this `pub
use` has re-exported the `hosting` module from the root module, external code
can now use the path `restaurant::hosting::add_to_waitlist()` instead.

Expand Down

0 comments on commit 3dd1e24

Please sign in to comment.