s-expressionists / wscl

Sources of the "Well Specified Common Lisp" specification which is based on the final draft of the Common Lisp standard but is not a new Common Lisp standard.
https://s-expressionists.github.io/wscl/
Other
38 stars 4 forks source link

restart-case typo #32

Open moon-chilled opened 1 year ago

moon-chilled commented 1 year ago

example reads:

 (restart-case
     (handler-bind ((error #'(lambda (c)
                             (declare (ignore condition))
                             (invoke-restart 'my-restart 7))))
       (error "Foo."))
   (my-restart (&optional v) v))

should pick just one of 'c' and 'condition'. And probably ditch #'

scymtym commented 1 year ago

Thanks. Applied in https://github.com/s-expressionists/dpans/commit/8c75767627d41db43ec36109905bffa333546c91 (except the #' part since we only address errors for now).

moon-chilled commented 1 year ago

I just realised the indentation of the function body is also wrong (does that count as an error?)