Reword description of how a listing came to be

Fixes #3085.
This commit is contained in:
Carol (Nichols || Goulding)
2022-03-28 20:48:00 -04:00
committed by Carol (Nichols || Goulding)
parent 6977b7fdf1
commit 2b847dc5ea

View File

@@ -17,8 +17,8 @@ separated by double colons (`::`).
Lets return to the example in Listing 7-1. How do we call the
`add_to_waitlist` function? This is the same as asking, whats the path of the
`add_to_waitlist` function? In Listing 7-3, we simplified our code a bit by
removing some of the modules and functions. Well show two ways to call the
`add_to_waitlist` function? Listing 7-3 contains Listing 7-1 with some of the
modules and functions removed. Well show two ways to call the
`add_to_waitlist` function from a new function `eat_at_restaurant` defined in
the crate root. The `eat_at_restaurant` function is part of our library crates
public API, so we mark it with the `pub` keyword. In the [“Exposing Paths with