Skip to content

Commit 237b237

Browse files
committed
Train Driver: fix typos and minor corrections
1 parent ab4c4e5 commit 237b237

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

exercises/concept/train-driver/.docs/instructions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The function should then return the given IDs as a single `array`.
1919

2020
```javascript
2121
getListOfWagons(1, 7, 12, 3, 14, 8, 5);
22-
// => [1, 7, 12, 3, 14, 8, 3]
22+
// => [1, 7, 12, 3, 14, 8, 5]
2323
```
2424

2525
## 2. Move the first two elements to the end of the array
@@ -87,7 +87,7 @@ Your friend has noticed that they don't need the arrival time in the routing inf
8787
Therefore your friend would like you to separate the arrival time from the routing information.
8888

8989
Implement a function `separateTimeOfArrival` that accepts an object with the routing information.
90-
The function should return an array there the first element of the array is the arrival time and the second element is an object with the routing information without arrival time.
90+
The function should return an array where the first element of the array is the arrival time and the second element is an object with the routing information without arrival time.
9191

9292
```javascript
9393
routeInformation = {

exercises/concept/train-driver/train-driver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/**
88
* Return each wagon's id in form of an array.
99
*
10-
* @param {number[]} ids
10+
* @param {...numbers} ids
1111
* @returns {number[]} wagon ids
1212
*/
1313
export function getListOfWagons(a, b, c, d, e, f, g, h, i, j, k, l, m, n) {

0 commit comments

Comments
 (0)