summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/app_state.rs4
-rw-r--r--src/dev.rs2
-rw-r--r--src/dev/new.rs8
-rw-r--r--src/info_file.rs4
-rw-r--r--src/main.rs2
5 files changed, 10 insertions, 10 deletions
diff --git a/src/app_state.rs b/src/app_state.rs
index d1c45d4..f3f3481 100644
--- a/src/app_state.rs
+++ b/src/app_state.rs
@@ -315,7 +315,7 @@ impl AppState {
}
// Official exercises: Dump the original file from the binary.
- // Third-party exercises: Reset the exercise file with `git stash`.
+ // Community exercises: Reset the exercise file with `git stash`.
fn reset(&self, exercise_ind: usize, path: &str) -> Result<()> {
if self.official_exercises {
return EMBEDDED_FILES
@@ -385,7 +385,7 @@ impl AppState {
}
/// Official exercises: Dump the solution file from the binary and return its path.
- /// Third-party exercises: Check if a solution file exists and return its path in that case.
+ /// Community exercises: Check if a solution file exists and return its path in that case.
pub fn current_solution_path(&self) -> Result<Option<String>> {
if cfg!(debug_assertions) {
return Ok(None);
diff --git a/src/dev.rs b/src/dev.rs
index 354d77c..41fddbe 100644
--- a/src/dev.rs
+++ b/src/dev.rs
@@ -8,7 +8,7 @@ mod update;
#[derive(Subcommand)]
pub enum DevCommands {
- /// Create a new project for third-party Rustlings exercises
+ /// Create a new project for community exercises
New {
/// The path to create the project in
path: PathBuf,
diff --git a/src/dev/new.rs b/src/dev/new.rs
index ba3517f..883b6fa 100644
--- a/src/dev/new.rs
+++ b/src/dev/new.rs
@@ -86,10 +86,10 @@ target/
";
const INFO_FILE_BEFORE_FORMAT_VERSION: &str =
- "# The format version is an indicator of the compatibility of third-party exercises with the
+ "# The format version is an indicator of the compatibility of community exercises with the
# Rustlings program.
# The format version is not the same as the version of the Rustlings program.
-# In case Rustlings makes an unavoidable breaking change to the expected format of third-party
+# In case Rustlings makes an unavoidable breaking change to the expected format of community
# exercises, you would need to raise this version and adapt to the new format.
# Otherwise, the newest version of the Rustlings program won't be able to run these exercises.
format_version = ";
@@ -97,7 +97,7 @@ format_version = ";
const INFO_FILE_AFTER_FORMAT_VERSION: &str = r#"
# Optional multi-line message to be shown to users when just starting with the exercises.
-welcome_message = """Welcome to these third-party Rustlings exercises."""
+welcome_message = """Welcome to these community Rustlings exercises."""
# Optional multi-line message to be shown to users after finishing all exercises.
final_message = """We hope that you found the exercises helpful :D"""
@@ -141,7 +141,7 @@ publish = false
const README: &str = "# Rustlings 🦀
-Welcome to these third-party Rustlings exercises 😃
+Welcome to these community Rustlings exercises 😃
First, [install Rustlings using the official instructions](https://github.com/rust-lang/rustlings) ✅
diff --git a/src/info_file.rs b/src/info_file.rs
index ec61f8a..634bece 100644
--- a/src/info_file.rs
+++ b/src/info_file.rs
@@ -79,7 +79,7 @@ impl RunnableExercise for ExerciseInfo {
/// The deserialized `info.toml` file.
#[derive(Deserialize)]
pub struct InfoFile {
- /// For possible breaking changes in the future for third-party exercises.
+ /// For possible breaking changes in the future for community exercises.
pub format_version: u8,
/// Shown to users when starting with the exercises.
pub welcome_message: Option<String>,
@@ -91,7 +91,7 @@ pub struct InfoFile {
impl InfoFile {
/// Official exercises: Parse the embedded `info.toml` file.
- /// Third-party exercises: Parse the `info.toml` file in the current directory.
+ /// Community exercises: Parse the `info.toml` file in the current directory.
pub fn parse() -> Result<Self> {
// Read a local `info.toml` if it exists.
let slf = match fs::read_to_string("info.toml") {
diff --git a/src/main.rs b/src/main.rs
index 6688e3e..bce2593 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -58,7 +58,7 @@ enum Subcommands {
/// The name of the exercise
name: Option<String>,
},
- /// Commands for developing (third-party) Rustlings exercises
+ /// Commands for developing (community) Rustlings exercises
#[command(subcommand)]
Dev(DevCommands),
}