Skip to content

Commit a5feaf8

Browse files
committed
change first insert to set, to avoid bug in ch2
1 parent 6a20bea commit a5feaf8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

coderoad.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
],
6464
"actions": [
6565
"open('01-filter.js')",
66-
"insert('// Array.filter(fn)\n\nfunction isAda(student) {\n // return true if student name\n // matches \"Ada Lovelace\"\n ::>\n}\n')"
66+
"set('// Array.filter(fn)\n\nfunction isAda(student) {\n // return true if student name\n // matches \"Ada Lovelace\"\n ::>\n}\n')"
6767
],
6868
"hints": [
6969
"Some tasks have hints",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "coderoad-functional-school",
3-
"version": "0.5.2",
3+
"version": "0.5.3",
44
"description": "Coderoad tutorial",
55
"author": "Shawn McKay <shawn.j.mckay@gmail.com> (http://shmck.com)",
66
"contributers": [

tutorial/01/filter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ console.log(students[0]);
5454
+ Write a filter condition function called `isAda` that returns true only if the name matches your name: "Ada Lovelace".
5555
@test('01/01-filter')
5656
@action(open('01-filter.js'))
57-
@action(insert(
57+
@action(set(
5858
```
5959
// Array.filter(fn)
6060

0 commit comments

Comments
 (0)