make-readtable: fix argument checking

This commit is contained in:
Matthew Flatt 2019-01-08 16:26:13 -07:00
parent 9aa0965aaa
commit 77c7b2b147
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@
(raise-argument-error 'make-readtable "(or/c char? #f)" key))
;; Mode determines how the key is mapped
(when (null? args)
(when (null? (cdr args))
(cond
[key (raise-arguments-error 'make-readtable
(string-append "expected 'terminating-macro, 'non-terminating-macro, 'dispatch-macro,"

View File

@ -52197,7 +52197,7 @@ static const char *startup_source =
"(values))))"
"(let-values((()"
"(begin"
"(if(null? args_1)"
"(if(null?(cdr args_1))"
"(let-values()"
"(if key_0"
"(let-values()"