Skip to content

Commit f763bc2

Browse files
committed
fix typo
1 parent 88a31cd commit f763bc2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lips.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4164,8 +4164,8 @@ function extract_patterns(pattern, code, symbols, ellipsis_symbol, scope = {}) {
41644164
}
41654165
let code_len = code.length();
41664166
let list = code;
4167-
const traling = improper_list ? 1 : 1;
4168-
while (code_len - traling > list_len) {
4167+
const trailing = improper_list ? 1 : 1;
4168+
while (code_len - trailing > list_len) {
41694169
list = list.cdr;
41704170
code_len--;
41714171
}
@@ -4373,7 +4373,7 @@ function extract_patterns(pattern, code, symbols, ellipsis_symbol, scope = {}) {
43734373
code
43744374
});
43754375
// case (x y) ===> (var0 var1 ... warn) where var1 match nil
4376-
// traling: true start processing of (var ... x . y)
4376+
// trailing: true start processing of (var ... x . y)
43774377
if (is_pair(pattern.cdr) &&
43784378
is_pair(pattern.cdr.cdr) &&
43794379
pattern.cdr.car instanceof LSymbol &&

0 commit comments

Comments
 (0)