From e5906dd61db1d7d76760099b6d053ff6d1546cd9 Mon Sep 17 00:00:00 2001 From: Masahiro Honma Date: Tue, 3 May 2022 09:24:48 +0900 Subject: [PATCH] Fix the file name of the `main_menu` function the `main_manu` function is defined in `gui.rs`, and there are no `menu.rs` . --- book/src/chapter_11.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/book/src/chapter_11.md b/book/src/chapter_11.md index e43c242a..71ba5916 100644 --- a/book/src/chapter_11.md +++ b/book/src/chapter_11.md @@ -99,7 +99,7 @@ RunState::MainMenu{ .. } => { We're basically updating the state with the new menu selection, and if something has been selected we change the game state. For `Quit`, we simply terminate the process. For now, we'll make loading/starting a game do the same thing: go into the `PreRun` state to setup the game. -The last thing to do is to write the menu itself. In `menu.rs`: +The last thing to do is to write the menu itself. In `gui.rs`: ```rust pub fn main_menu(gs : &mut State, ctx : &mut Rltk) -> MainMenuResult { @@ -670,4 +670,4 @@ This has been a long chapter, with quite heavy content. The great news is that w Copyright (C) 2019, Herbert Wolverson. ---- \ No newline at end of file +---