From 7a4945fbc199ec823da1be7283f6e81f83b2609b Mon Sep 17 00:00:00 2001 From: jao Date: Tue, 19 Jul 2022 02:43:37 +0100 Subject: Equivalent fix to the previous fix that reflects original intent program-arities is expected (in its only usage a few lines below its definition) to return #f if program-address-range doesn't return anything useful, and i was incorrectly using when instead of and for that. --- src/geiser/doc.scm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/geiser/doc.scm b/src/geiser/doc.scm index 2281da3..b566b5e 100644 --- a/src/geiser/doc.scm +++ b/src/geiser/doc.scm @@ -78,9 +78,7 @@ (define (program-arities prog) (let ((addrs (program-address-range prog))) - (if (pair? addrs) - (find-program-arities (car addrs)) - '()))) + (and (pair? addrs) (find-program-arities (car addrs))))) (define (arguments proc) (define (p-args prog) -- cgit v1.2.3