fix documentation for (object...)

This commit is contained in:
2022-11-02 23:24:15 +00:00
parent 3f50851a13
commit f4172396d3

View File

@@ -89,7 +89,7 @@ class SpecialForms {
// Declare anonymous objects // Declare anonymous objects
map["object"] = (wholeExp:ReaderExp, args:Array<ReaderExp>, k:KissState) -> { map["object"] = (wholeExp:ReaderExp, args:Array<ReaderExp>, k:KissState) -> {
if (args.length % 2 != 0) { if (args.length % 2 != 0) {
throw KissError.fromExp(wholeExp, "(object [field bindings]...) must have an even number of arguments"); throw KissError.fromExp(wholeExp, "(object <field bindings...>) must have an even number of arguments");
} }
EObjectDecl([ EObjectDecl([
for (pair in args.groups(2)) for (pair in args.groups(2))