From 896905ad7f72be70871d77d978d17bd019f179c4 Mon Sep 17 00:00:00 2001 From: cbrtrk <58306710+cbrtrk@users.noreply.github.com> Date: Sat, 19 Apr 2025 20:58:06 +0200 Subject: [PATCH] Corrected README.md literal template example --- docs/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/README.md b/docs/README.md index 9a5c4b7..c5cd4e2 100644 --- a/docs/README.md +++ b/docs/README.md @@ -369,7 +369,7 @@ Please note this is an *optional* feature, not a mandatory one: you don't need t Technically speaking, in the template literal tags world all values part of the template are called *interpolations*. ```js -const tag = (template, interpolations) => { +const tag = (template, ...interpolations) => { console.log(template.join()); // logs "this is , and this is ," console.log(interpolations);