Skip to content

Commit 48286d9

Browse files
committed
Fix error on own template
1 parent d84bc3a commit 48286d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

template-literals.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const bar = () => 'MrBar'
2626
const mr = (template, ...expressions) => {
2727
// template is an Array broke at the interpolations
2828
// e.g. for `foo {$a} bar {$b}`
29-
// template = ['foo ', ' bar ', '']
29+
// template = ['Dear ', ' and ', '']
3030
return template.reduce((result, current, index) => {
3131
return `${result}Mr.${expressions[index - 1]}${current}`
3232
})

0 commit comments

Comments
 (0)