aboutsummaryrefslogtreecommitdiff
path: root/terrafirma.lisp
diff options
context:
space:
mode:
authorcolin <colin@cicadas.surf>2023-11-30 18:57:27 -0800
committercolin <colin@cicadas.surf>2023-11-30 18:57:27 -0800
commit6313c32898f155c44fff350aa18358be58483fd9 (patch)
tree87e95f7688a99310fb7f15064c6d8c84c42164bf /terrafirma.lisp
parenta7f9f52a100b8ba8ef87b93ce6e227f9238e2902 (diff)
rearrange arguments in defvalidator
Diffstat (limited to 'terrafirma.lisp')
-rw-r--r--terrafirma.lisp2
1 files changed, 1 insertions, 1 deletions
diff --git a/terrafirma.lisp b/terrafirma.lisp
index b5ef90c..e5a3ec5 100644
--- a/terrafirma.lisp
+++ b/terrafirma.lisp
@@ -48,7 +48,7 @@
(defvar *type*)
(defvar *instance*)
-(defmacro defvalidator ((var type &key name) &body body)
+(defmacro defvalidator (type (var &key name) &body body)
"Defines a validation function. If TYPE is a symbolic type identifier,
then the defined function will have a name like VALID-<TYPE>-P.
Otherwise a NAME must be provided.