From a5f221aa39196b00cb12425ba9f6ed5500ae5790 Mon Sep 17 00:00:00 2001 From: mo8it Date: Sun, 7 Jul 2024 15:53:48 +0200 Subject: [PATCH] Improve some messages --- dev/rustlings-repo.txt | 2 +- src/dev/new.rs | 4 ++-- src/main.rs | 7 ++++--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/dev/rustlings-repo.txt b/dev/rustlings-repo.txt index 62793612..5d456c88 100644 --- a/dev/rustlings-repo.txt +++ b/dev/rustlings-repo.txt @@ -1 +1 @@ -This file is used to check if the user tries to run Rustlings in the repository (the method before v6) +This file is used to check if the user tries to run Rustlings in the repository (the method before version 6) diff --git a/src/dev/new.rs b/src/dev/new.rs index fefc4fc1..55d5f141 100644 --- a/src/dev/new.rs +++ b/src/dev/new.rs @@ -139,7 +139,7 @@ const README: &str = "# Rustlings 🦀 Welcome to these third-party Rustlings exercises 😃 -First, [install Rustlings using the official instructions in the README of the Rustlings project](https://github.com/rust-lang/rustlings) ✅ +First, [install Rustlings using the official instructions](https://github.com/rust-lang/rustlings) ✅ -Then, open your terminal in this directory and run `rustlings` to get started with the exercises 🚀 +Then, clone this repository, open a terminal in this directory and run `rustlings` to get started with the exercises 🚀 "; diff --git a/src/main.rs b/src/main.rs index 2233d8b0..a9f7b4a1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -197,9 +197,10 @@ fn main() -> Result<()> { Ok(()) } -const OLD_METHOD_ERR: &str = "You are trying to run Rustlings using the old method before v6. +const OLD_METHOD_ERR: &str = + "You are trying to run Rustlings using the old method before version 6. The new method doesn't include cloning the Rustlings' repository. -Please follow the instructions in the README: +Please follow the instructions in `README.md`: https://github.com/rust-lang/rustlings#getting-started"; const FORMAT_VERSION_HIGHER_ERR: &str = @@ -216,5 +217,5 @@ const PRE_INIT_MSG: &str = r" |_| \__,_|___/\__|_|_|_| |_|\__, |___/ |___/ -The `exercises` directory wasn't found in the current directory. +The `exercises/` directory couldn't be found in the current directory. If you are just starting with Rustlings, run the command `rustlings init` to initialize it.";