From 44c6a81168ddf66387c161c65cb3dcf06932b91a Mon Sep 17 00:00:00 2001 From: zwdsjl Date: Sat, 4 Nov 2017 14:18:35 +0800 Subject: [PATCH] Update string.md --- docs/string.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/string.md b/docs/string.md index e14f255..697eaca 100644 --- a/docs/string.md +++ b/docs/string.md @@ -885,7 +885,8 @@ String.raw`Hi\\n` ```javascript String.raw = function (strings, ...values) { let output = ""; - for (let index = 0; index < values.length; index++) { + let index; + for (index = 0; index < values.length; index++) { output += strings.raw[index] + values[index]; }