[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master b4f09b9: * lisp/emacs-lisp/seq.el (seq-random-elt):
From: |
Nicolas Petton |
Subject: |
[Emacs-diffs] master b4f09b9: * lisp/emacs-lisp/seq.el (seq-random-elt): Fix docstring. |
Date: |
Tue, 25 Oct 2016 15:07:11 +0000 (UTC) |
branch: master
commit b4f09b92bc09d66d01206ec0f5e20b1d2701cd86
Author: Nicolas Petton <address@hidden>
Commit: Nicolas Petton <address@hidden>
* lisp/emacs-lisp/seq.el (seq-random-elt): Fix docstring.
---
lisp/emacs-lisp/seq.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/emacs-lisp/seq.el b/lisp/emacs-lisp/seq.el
index 5c89d2b..2b4330c 100644
--- a/lisp/emacs-lisp/seq.el
+++ b/lisp/emacs-lisp/seq.el
@@ -479,7 +479,7 @@ If no element is found, return nil."
(cl-defgeneric seq-random-elt (sequence)
"Return a random element from SEQUENCE.
-Return nil if SEQUENCE is nil."
+Signal an error if SEQUENCE is empty."
(if (seq-empty-p sequence)
(error "Sequence cannot be empty")
(seq-elt sequence (random (seq-length sequence)))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master b4f09b9: * lisp/emacs-lisp/seq.el (seq-random-elt): Fix docstring.,
Nicolas Petton <=