Skip to content

Commit 2e58107

Browse files
committed
Fix skill activation parse error by removing template literal example
Remove function example with template literal from SKILL.md that caused bash parse errors when activating the modern-javascript skill. The destructuring content is already covered in references/CHEATSHEET.md.
1 parent 658f323 commit 2e58107

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

skills/modern-javascript/SKILL.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -269,11 +269,6 @@ const { address: { city, country } } = user;
269269

270270
// Rest
271271
const { id, ...userData } = user;
272-
273-
// Function parameters
274-
function greet({ name, greeting = 'Hello' }) {
275-
return `${greeting}, ${name}!`;
276-
}
277272
```
278273
279274
### Array Destructuring

0 commit comments

Comments
 (0)