1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2024-11-08 09:09:17 +01:00

Fix typos

This commit is contained in:
mo8it 2024-08-09 01:08:52 +02:00
parent 55e68d2c63
commit f5737b5a49
2 changed files with 2 additions and 2 deletions

@ -69,7 +69,7 @@ pub fn init() -> Result<()> {
.stdout(Stdio::null()) .stdout(Stdio::null())
.status()?; .status()?;
if !status.success() { 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")?; stdout.write_all(b"The directory `rustlings` has been added to `workspace.members` in the Cargo.toml file of this Cargo workspace.\n")?;

@ -106,7 +106,7 @@ fn main() -> Result<()> {
write!(stdout, "{welcome_message}\n\nPress ENTER to continue ")?; write!(stdout, "{welcome_message}\n\nPress ENTER to continue ")?;
press_enter_prompt(&mut stdout)?; press_enter_prompt(&mut stdout)?;
clear_terminal(&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()?; stdout.flush()?;
} }
StateFileStatus::Read => (), StateFileStatus::Read => (),