1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-24 18:32:22 +00:00

docs(string): fix typo

This commit is contained in:
ruanyf 2020-11-17 22:39:58 +08:00
parent f8171643cd
commit a326217687

View File

@ -505,11 +505,10 @@ function passthru(literals) {
let i = 0; let i = 0;
while (i < literals.length) { while (i < literals.length) {
result += literals[i]; result += literals[i++];
if (i < arguments.length) { if (i < arguments.length) {
result += arguments[i]; result += arguments[i];
} }
i++;
} }
return result; return result;