From 05e773a460708e40941d1267054bba23e619e7a0 Mon Sep 17 00:00:00 2001 From: Nicolas Petton Date: Wed, 7 Dec 2016 13:32:46 +0100 Subject: [PATCH] Docstring improvement for seq-some (bug#25129) * lisp/emacs-lisp/seq.el (seq-some): Make the docstring less confusing regarding the returned value. --- lisp/emacs-lisp/seq.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/seq.el b/lisp/emacs-lisp/seq.el index 2b4330c1a3c..5ddc5a53a32 100644 --- a/lisp/emacs-lisp/seq.el +++ b/lisp/emacs-lisp/seq.el @@ -316,7 +316,8 @@ If SEQUENCE is empty, return INITIAL-VALUE and FUNCTION is not called." t)) (cl-defgeneric seq-some (pred sequence) - "Return the first value for which if (PRED element) is non-nil for in SEQUENCE." + "Return non-nil if PRED is satisfied for at least one element of SEQUENCE. +If so, return the first non-nil value returned by PRED." (catch 'seq--break (seq-doseq (elt sequence) (let ((result (funcall pred elt))) -- 2.39.2