emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 05e773a: Docstring improvement for seq-some (bug#25


From: Nicolas Petton
Subject: [Emacs-diffs] master 05e773a: Docstring improvement for seq-some (bug#25129)
Date: Wed, 7 Dec 2016 12:33:37 +0000 (UTC)

branch: master
commit 05e773a460708e40941d1267054bba23e619e7a0
Author: Nicolas Petton <address@hidden>
Commit: Nicolas Petton <address@hidden>

    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 2b4330c..5ddc5a5 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)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]