Skip to content

Commit 21023cd

Browse files
committed
Updated function name
Updated function name in comments to match function name in the code
1 parent a9c5c7d commit 21023cd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tutorial/1/03/map.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Those D & F grades would look a lot better if they suddenly became A's.
5656

5757
Let's go back to before we filtered out the bad grades, and instead change the grades to A's.
5858

59-
+ Make a function `changeGrades` that takes student data and changes all grades to "A"s.
59+
+ Make a function `changeGrade` that takes student data and changes all grades to "A"s.
6060
@test('1/03/01-map')
6161
@action(open('03-map.js'))
6262
@action(set(
@@ -72,11 +72,11 @@ function changeGrade() {
7272
@hint('match where `student.grade === 'A'`')
7373

7474

75-
+ Map over the `myData` with the `changeGrades` function. Set `myChanged` to the result.
75+
+ Map over the `myData` with the `changeGrade` function. Set `myChanged` to the result.
7676
@test('1/03/02-map')
7777
@action(insert(
7878
```
79-
// map over `myData` with the `changeGrades` function
79+
// map over `myData` with the `changeGrade` function
8080
var myChanged = myData.map();
8181
```
8282
))

0 commit comments

Comments
 (0)