From f5737b5a49f6dfafbefda74df05ca1a93cdec94a Mon Sep 17 00:00:00 2001 From: mo8it Date: Fri, 9 Aug 2024 01:08:52 +0200 Subject: [PATCH] Fix typos --- src/init.rs | 2 +- src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/init.rs b/src/init.rs index 3a0e11d..62a670d 100644 --- a/src/init.rs +++ b/src/init.rs @@ -69,7 +69,7 @@ pub fn init() -> Result<()> { .stdout(Stdio::null()) .status()?; if !status.success() { - bail!("Failed to initilize a new Cargo workspace member.\nPlease initialize Rustlings in a different directory"); + bail!("Failed to initialize a new Cargo workspace member.\nPlease initialize Rustlings in a different directory"); } stdout.write_all(b"The directory `rustlings` has been added to `workspace.members` in the Cargo.toml file of this Cargo workspace.\n")?; diff --git a/src/main.rs b/src/main.rs index 58cd8ff..0855d43 100644 --- a/src/main.rs +++ b/src/main.rs @@ -106,7 +106,7 @@ fn main() -> Result<()> { write!(stdout, "{welcome_message}\n\nPress ENTER to continue ")?; press_enter_prompt(&mut stdout)?; clear_terminal(&mut stdout)?; - // Flush to be able to show errors occuring before printing a newline to stdout. + // Flush to be able to show errors occurring before printing a newline to stdout. stdout.flush()?; } StateFileStatus::Read => (),