Skip to content

Commit

Permalink
Reword description of how a listing came to be
Browse files Browse the repository at this point in the history
Fixes #3085.
  • Loading branch information
carols10cents committed Mar 29, 2022
1 parent 6977b7f commit 2b847dc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ separated by double colons (`::`).

Let’s return to the example in Listing 7-1. How do we call the
`add_to_waitlist` function? This is the same as asking, what’s 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. We’ll 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. We’ll 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 crate’s
public API, so we mark it with the `pub` keyword. In the [“Exposing Paths with
Expand Down

0 comments on commit 2b847dc

Please sign in to comment.