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:
parent
f8171643cd
commit
a326217687
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user