Skip to content

Commit

Permalink
Merge pull request #3879 from rust-lang/push-lxxrzyyuxszl
Browse files Browse the repository at this point in the history
Ch. 7: add a note about the need for `pub` in one more place
  • Loading branch information
chriskrycho authored Apr 8, 2024
2 parents 3131aa4 + 3dd1e24 commit ff58b96
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 ff58b96

Please sign in to comment.