Skip to content

Commit d408ec0

Browse files
authored
Fix typos in Locomotive Engineer exercise and 1 concept (#1641)
exercises/concept/locomotive-engineer/locomotive_engineer_test.rb - Corrected typo in the name of "Leipzig" (×2) - [no important files changed] exercises/concept/locomotive-engineer/.docs/introduction.md - "keywword" → "keyword" exercises/concept/locomotive-engineer/.docs/instructions.md - "a array" → "an array" concepts/multiple-assignment-and-decomposition/about.md - "keywword" → "keyword"
1 parent 770b01c commit d408ec0

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

concepts/multiple-assignment-and-decomposition/about.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ If the method defined does not have any defined parameters for keyword arguments
317317
`*arguments` and `**keyword_arguments` can also be used in combination with one another:
318318

319319
```ruby
320-
def my_method(*arguments, **keywword_arguments)
320+
def my_method(*arguments, **keyword_arguments)
321321
p arguments.sum
322322
for (key, value) in keyword_arguments.to_a
323323
p key.to_s + " = " + value.to_s

exercises/concept/locomotive-engineer/.docs/instructions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Linus would be really grateful to you for fixing their mistakes and consolidatin
3737

3838
Implement a method `fix_list_of_wagons()` that takes two **arrays** containing wagon IDs.
3939
It should reposition the first two items of the first **array** to the end, and insert the values from the second **array** behind (_on the right hand side of_) the locomotive ID (**1**).
40-
The method should then `return` a **array** with the modifications.
40+
The method should then `return` an **array** with the modifications.
4141

4242
```ruby
4343
LocomotiveEngineer.fix_list_of_wagons([2, 5, 1, 7, 4, 12, 6, 3, 13], [3, 17, 6, 15])

exercises/concept/locomotive-engineer/.docs/introduction.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ If the method defined does not have any defined parameters for keyword arguments
299299
`*arguments` and `**keyword_arguments` can also be used in combination with one another:
300300

301301
```ruby
302-
def my_method(*arguments, **keywword_arguments)
302+
def my_method(*arguments, **keyword_arguments)
303303
p arguments.sum
304304
for (key, value) in keyword_arguments.to_a
305305
p key.to_s + " = " + value.to_s

exercises/concept/locomotive-engineer/locomotive_engineer_test.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ def test_fix_array_of_wagons_the_missing_wagons_input_is_longer
3939
end
4040

4141
def test_add_missing_stops_a_few_stops
42-
assert_equal({ from: 'Berlin', to: 'Hamburg', stops: %w[Lepzig Hannover Frankfurt] },
43-
LocomotiveEngineer.add_missing_stops({ from: 'Berlin', to: 'Hamburg' }, stop_1: 'Lepzig', stop_2: 'Hannover', stop_3: 'Frankfurt'))
42+
assert_equal({ from: 'Berlin', to: 'Hamburg', stops: %w[Leipzig Hannover Frankfurt] },
43+
LocomotiveEngineer.add_missing_stops({ from: 'Berlin', to: 'Hamburg' }, stop_1: 'Leipzig', stop_2: 'Hannover', stop_3: 'Frankfurt'))
4444
end
4545

4646
def test_add_missing_stops_with_one_stop

0 commit comments

Comments
 (0)