diff --git a/exercises/concept/doctor-data/.docs/hints.md b/exercises/concept/doctor-data/.docs/hints.md index 5c6d06cd..9fd16c8d 100644 --- a/exercises/concept/doctor-data/.docs/hints.md +++ b/exercises/concept/doctor-data/.docs/hints.md @@ -21,4 +21,4 @@ ## 3. Look into the inner workings -- The `shoot_buster` member function seems to be depenedent on an internal counter. +- The `shoot_buster` member function seems to be dependent on an internal counter. diff --git a/exercises/concept/election-day/.docs/instructions.md b/exercises/concept/election-day/.docs/instructions.md index 0ccd0f31..14a71a67 100644 --- a/exercises/concept/election-day/.docs/instructions.md +++ b/exercises/concept/election-day/.docs/instructions.md @@ -27,7 +27,7 @@ You can use an `initializer list` instead: ```cpp ElectionResult hamilton{"Alex", 1804}; -// => the hamilton object was intialized with the name "Alex" and 1804 votes. +// => the hamilton object was initialized with the name "Alex" and 1804 votes. ``` Create a function `vote_count` that will take a reference to an `ElectionResult` as an argument and will return the number of votes in the `ElectionResult`. diff --git a/exercises/concept/election-day/.docs/introduction.md b/exercises/concept/election-day/.docs/introduction.md index 1718c21d..2bf28e11 100644 --- a/exercises/concept/election-day/.docs/introduction.md +++ b/exercises/concept/election-day/.docs/introduction.md @@ -32,7 +32,7 @@ budget -= pro_computer_wheels; // balance is also 301; ``` Reseating (changing the binding of a `reference`) is not possible. -You cannot have an unitialized `reference`. +You cannot have an uninitialized `reference`. `References` need to be initialized with an existing variable. ```cpp @@ -46,7 +46,7 @@ savings = side_acc; // savings and main_acc are now -20 // as this uses the **value** of side_acc savings += 20; -// savings and main_acc are now 0, side_acc is stil -20 +// savings and main_acc are now 0, side_acc is still -20 int& future_budget; // => compiler error, reference must be bound! diff --git a/exercises/concept/lasagna/.docs/introduction.md b/exercises/concept/lasagna/.docs/introduction.md index 3d6f8951..31dd33d1 100644 --- a/exercises/concept/lasagna/.docs/introduction.md +++ b/exercises/concept/lasagna/.docs/introduction.md @@ -35,7 +35,7 @@ int potatoes = 40; ~~~~exercism/caution C++ does allow using uninitialized variables. Until the variable is deliberately set, it is undefined and might contain anything. -To avoid used-before-set errors and undefined behavior it is adviseable to **always initialize**. +To avoid used-before-set errors and undefined behavior it is advisable to **always initialize**. Undefined behavior can crash your program at the worst possible moment, while it was running fine previously. It cannot be stressed enough: avoid undefined behavior at all cost. ~~~~ diff --git a/exercises/concept/vehicle-purchase/.docs/introduction.md b/exercises/concept/vehicle-purchase/.docs/introduction.md index 4c9692c9..50288621 100644 --- a/exercises/concept/vehicle-purchase/.docs/introduction.md +++ b/exercises/concept/vehicle-purchase/.docs/introduction.md @@ -89,4 +89,4 @@ if (int v{2 * num}; v > 10) { // => 14 ``` -> Note: any variables created in the initialization cannot be accesed after the end of the if statement. +> Note: any variables created in the initialization cannot be accessed after the end of the if statement.