Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion exercises/concept/doctor-data/.docs/hints.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 1 addition & 1 deletion exercises/concept/election-day/.docs/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
4 changes: 2 additions & 2 deletions exercises/concept/election-day/.docs/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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!
Expand Down
2 changes: 1 addition & 1 deletion exercises/concept/lasagna/.docs/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
~~~~
Expand Down
2 changes: 1 addition & 1 deletion exercises/concept/vehicle-purchase/.docs/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.