mirror of
https://github.com/rust-lang/book.git
synced 2026-05-19 00:00:04 -04:00
committed by
Carol (Nichols || Goulding)
parent
6977b7fdf1
commit
2b847dc5ea
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user