* lisp/emacs-lisp/seq.el (seq-random-elt): Fix docstring.

This commit is contained in:
Nicolas Petton 2016-10-25 17:06:03 +02:00
parent 4722db6c96
commit b4f09b92bc

View file

@ -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)))))