mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2024-04-21 12:32:22 +00:00
docs(string): fix typo
This commit is contained in:
+1
-2
@@ -505,11 +505,10 @@ function passthru(literals) {
|
||||
let i = 0;
|
||||
|
||||
while (i < literals.length) {
|
||||
result += literals[i];
|
||||
result += literals[i++];
|
||||
if (i < arguments.length) {
|
||||
result += arguments[i];
|
||||
}
|
||||
i++;
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user