Skip to content

Commit a5f221a

Browse files
committed
Improve some messages
1 parent e764b75 commit a5f221a

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

dev/rustlings-repo.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
This file is used to check if the user tries to run Rustlings in the repository (the method before v6)
1+
This file is used to check if the user tries to run Rustlings in the repository (the method before version 6)

src/dev/new.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ const README: &str = "# Rustlings 🦀
139139
140140
Welcome to these third-party Rustlings exercises 😃
141141
142-
First, [install Rustlings using the official instructions in the README of the Rustlings project](https://github.com/rust-lang/rustlings) ✅
142+
First, [install Rustlings using the official instructions](https://github.com/rust-lang/rustlings) ✅
143143
144-
Then, open your terminal in this directory and run `rustlings` to get started with the exercises 🚀
144+
Then, clone this repository, open a terminal in this directory and run `rustlings` to get started with the exercises 🚀
145145
";

src/main.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,10 @@ fn main() -> Result<()> {
197197
Ok(())
198198
}
199199

200-
const OLD_METHOD_ERR: &str = "You are trying to run Rustlings using the old method before v6.
200+
const OLD_METHOD_ERR: &str =
201+
"You are trying to run Rustlings using the old method before version 6.
201202
The new method doesn't include cloning the Rustlings' repository.
202-
Please follow the instructions in the README:
203+
Please follow the instructions in `README.md`:
203204
https://github.com/rust-lang/rustlings#getting-started";
204205

205206
const FORMAT_VERSION_HIGHER_ERR: &str =
@@ -216,5 +217,5 @@ const PRE_INIT_MSG: &str = r"
216217
|_| \__,_|___/\__|_|_|_| |_|\__, |___/
217218
|___/
218219
219-
The `exercises` directory wasn't found in the current directory.
220+
The `exercises/` directory couldn't be found in the current directory.
220221
If you are just starting with Rustlings, run the command `rustlings init` to initialize it.";

0 commit comments

Comments
 (0)