* lisp/emacs-lisp/seq.el (seq-random-elt): Fix docstring.
This commit is contained in:
parent
4722db6c96
commit
b4f09b92bc
1 changed files with 1 additions and 1 deletions
|
@ -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)))))
|
||||
|
|
Loading…
Add table
Reference in a new issue