1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 11:40:18 +02:00

srfi-1: 'find-tail' passes 'check-arg' the right procedure name.

* module/srfi/srfi-1.scm (find-tail): Pass 'find-tail' as the 3rd
argument to 'check-arg'.
This commit is contained in:
Ludovic Courtès 2021-09-20 16:58:04 +02:00
parent 5a389ca728
commit e304773416

View file

@ -1,6 +1,6 @@
;;; srfi-1.scm --- List Library ;;; srfi-1.scm --- List Library
;; Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2009, 2010, 2011, 2014, 2020 Free Software Foundation, Inc. ;; Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2009, 2010, 2011, 2014, 2020, 2021 Free Software Foundation, Inc.
;; ;;
;; This library is free software; you can redistribute it and/or ;; This library is free software; you can redistribute it and/or
;; modify it under the terms of the GNU Lesser General Public ;; modify it under the terms of the GNU Lesser General Public
@ -734,7 +734,7 @@ the list returned."
(define (find-tail pred lst) (define (find-tail pred lst)
"Return the first pair of @var{lst} whose @sc{car} satisfies the "Return the first pair of @var{lst} whose @sc{car} satisfies the
predicate @var{pred}, or return @code{#f} if no such element is found." predicate @var{pred}, or return @code{#f} if no such element is found."
(check-arg procedure? pred find) (check-arg procedure? pred find-tail)
(let loop ((lst lst)) (let loop ((lst lst))
(and (not (null? lst)) (and (not (null? lst))
(let ((head (car lst))) (let ((head (car lst)))