diff options
| author | Nicolas Petton | 2016-12-07 13:32:46 +0100 |
|---|---|---|
| committer | Nicolas Petton | 2016-12-07 13:32:46 +0100 |
| commit | 05e773a460708e40941d1267054bba23e619e7a0 (patch) | |
| tree | 127d47254080dcca88aad102ea42847602321d8e | |
| parent | fe905647b53d00b1bd36e4f7ac756135635bb49a (diff) | |
| download | emacs-05e773a460708e40941d1267054bba23e619e7a0.tar.gz emacs-05e773a460708e40941d1267054bba23e619e7a0.zip | |
Docstring improvement for seq-some (bug#25129)
* lisp/emacs-lisp/seq.el (seq-some): Make the docstring less confusing
regarding the returned value.
| -rw-r--r-- | lisp/emacs-lisp/seq.el | 3 |
1 files changed, 2 insertions, 1 deletions
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." | |||
| 316 | t)) | 316 | t)) |
| 317 | 317 | ||
| 318 | (cl-defgeneric seq-some (pred sequence) | 318 | (cl-defgeneric seq-some (pred sequence) |
| 319 | "Return the first value for which if (PRED element) is non-nil for in SEQUENCE." | 319 | "Return non-nil if PRED is satisfied for at least one element of SEQUENCE. |
| 320 | If so, return the first non-nil value returned by PRED." | ||
| 320 | (catch 'seq--break | 321 | (catch 'seq--break |
| 321 | (seq-doseq (elt sequence) | 322 | (seq-doseq (elt sequence) |
| 322 | (let ((result (funcall pred elt))) | 323 | (let ((result (funcall pred elt))) |