Merge pull request #606 from zhenzhenChange/fix-typo-ch07

fix typo
This commit is contained in:
KaiserY 2022-05-31 17:02:19 +08:00 committed by GitHub
commit 823b52ddbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@ mod back_of_house {
pub fn eat_at_restaurant() { pub fn eat_at_restaurant() {
// 在夏天订购一个黑麦土司作为早餐 // 在夏天订购一个黑麦土司作为早餐
let mut meal = back_of_house::Breakfast::summer("Rye"); let mut meal = back_of_house::Breakfast::summer("Rye");
// 改变意更换想要面包的类型 // 改变意更换想要面包的类型
meal.toast = String::from("Wheat"); meal.toast = String::from("Wheat");
println!("I'd like {} toast please", meal.toast); println!("I'd like {} toast please", meal.toast);