Skip to content

Commit 3e1e135

Browse files
committed
docs(string): fix typo
1 parent 07a3c6f commit 3e1e135

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/string.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,11 +505,10 @@ function passthru(literals) {
505505
let i = 0;
506506

507507
while (i < literals.length) {
508-
result += literals[i];
508+
result += literals[i++];
509509
if (i < arguments.length) {
510510
result += arguments[i];
511511
}
512-
i++;
513512
}
514513

515514
return result;

0 commit comments

Comments
 (0)