Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/ch07-03-paths-for-referring-to-an-item-in-the-module-tree.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ mod front_of_house {
}
}

pub fn eat_at_restaurant() {
fn eat_at_restaurant() {
// Absolute path
crate::front_of_house::hosting::add_to_waitlist();

Expand Down Expand Up @@ -137,7 +137,7 @@ mod front_of_house {
}
}

pub fn eat_at_restaurant() {
fn eat_at_restaurant() {
// Absolute path
crate::front_of_house::hosting::add_to_waitlist();

Expand Down Expand Up @@ -193,7 +193,7 @@ mod front_of_house {
}
}

pub fn eat_at_restaurant() {
fn eat_at_restaurant() {
// Absolute path
crate::front_of_house::hosting::add_to_waitlist();

Expand Down Expand Up @@ -300,7 +300,7 @@ mod back_of_house {
}
}

pub fn eat_at_restaurant() {
fn eat_at_restaurant() {
// Order a breakfast in the summer with Rye toast
let mut meal = back_of_house::Breakfast::summer("Rye");
// Change our mind about what bread we'd like
Expand Down Expand Up @@ -342,7 +342,7 @@ mod back_of_house {
}
}

pub fn eat_at_restaurant() {
fn eat_at_restaurant() {
let order1 = back_of_house::Appetizer::Soup;
let order2 = back_of_house::Appetizer::Salad;
}
Expand Down
8 changes: 4 additions & 4 deletions src/ch07-04-bringing-paths-into-scope-with-the-use-keyword.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ mod front_of_house {

use crate::front_of_house::hosting;

pub fn eat_at_restaurant() {
fn eat_at_restaurant() {
hosting::add_to_waitlist();
hosting::add_to_waitlist();
hosting::add_to_waitlist();
Expand Down Expand Up @@ -57,7 +57,7 @@ mod front_of_house {

use self::front_of_house::hosting;

pub fn eat_at_restaurant() {
fn eat_at_restaurant() {
hosting::add_to_waitlist();
hosting::add_to_waitlist();
hosting::add_to_waitlist();
Expand Down Expand Up @@ -89,7 +89,7 @@ mod front_of_house {

use crate::front_of_house::hosting::add_to_waitlist;

pub fn eat_at_restaurant() {
fn eat_at_restaurant() {
add_to_waitlist();
add_to_waitlist();
add_to_waitlist();
Expand Down Expand Up @@ -210,7 +210,7 @@ mod front_of_house {

pub use crate::front_of_house::hosting;

pub fn eat_at_restaurant() {
fn eat_at_restaurant() {
hosting::add_to_waitlist();
hosting::add_to_waitlist();
hosting::add_to_waitlist();
Expand Down
2 changes: 1 addition & 1 deletion src/ch07-05-separating-modules-into-different-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ mod front_of_house;

pub use crate::front_of_house::hosting;

pub fn eat_at_restaurant() {
fn eat_at_restaurant() {
hosting::add_to_waitlist();
hosting::add_to_waitlist();
hosting::add_to_waitlist();
Expand Down