mirror of https://github.com/rust-lang/book
Merge pull request #3281 from thedumbsloth/function_name_fix_7.3
Edit on line no. 153. Replaced fn add_to_waitlist with fn eat_at_restaurant.
This commit is contained in:
commit
50149d92e0
|
@ -150,7 +150,7 @@ and `fn add_to_waitlist` lets us call the function from
|
|||
`eat_at_restaurant`</span>
|
||||
|
||||
Now the code will compile! To see why adding the `pub` keyword lets us use
|
||||
these paths in `add_to_waitlist` with respect to the privacy rules, let’s look
|
||||
these paths in `eat_at_restaurant` with respect to the privacy rules, let’s look
|
||||
at the absolute and the relative paths.
|
||||
|
||||
In the absolute path, we start with `crate`, the root of our crate’s module
|
||||
|
|
Loading…
Reference in New Issue