Skip to content

Commit d1a1da0

Browse files
authored
docs: add comma (#184)
The tutorial shows adding a new update method to the object being returned, but without the comma showing up there. This results in a syntax error if copied exactly, and might confuse people
1 parent 3d4bda5 commit d1a1da0

File tree

1 file changed

+1
-1
lines changed
  • content/tutorial/03-advanced-svelte/04-actions/02-adding-parameters-to-actions

1 file changed

+1
-1
lines changed

content/tutorial/03-advanced-svelte/04-actions/02-adding-parameters-to-actions/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ To change that, we can add an `update` method in `longpress.js`. This will be ca
3636
return {
3737
update(newDuration) {
3838
duration = newDuration;
39-
}
39+
},
4040
// ...
4141
};
4242
```

0 commit comments

Comments
 (0)