Skip to content

Commit 3dd1e24

Browse files
committed
Ch. 7: add a note about the need for pub in one more place
Fixes #3447
1 parent 3e96c36 commit 3dd1e24

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ch07-04-bringing-paths-into-scope-with-the-use-keyword.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ from a new scope with `pub use`</span>
157157

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

0 commit comments

Comments
 (0)