; Fix documentaion of 'seq-intersection'

* doc/lispref/sequences.texi (Sequence Functions):
* lisp/emacs-lisp/seq.el (seq-intersection): Fix documentaion of
'seq-intersection'.  (Bug#80257)
This commit is contained in:
Jens Schmidt 2026-01-25 13:57:21 +01:00 committed by Eli Zaretskii
parent f081afe23d
commit 1652e36c6c
2 changed files with 4 additions and 4 deletions

View file

@ -1110,9 +1110,9 @@ instead of the default @code{equal}.
@cindex sequences, intersection of
@cindex intersection of sequences
This function returns a copy of @var{sequence1} from which the
elements that appear in @var{sequence2} where removed. If the optional
argument @var{function} is non-@code{nil}, it is a function of two
arguments to use to compare elements instead of the default
elements that do not appear in @var{sequence2} were removed. If the
optional argument @var{function} is non-@code{nil}, it is a function of
two arguments to use to compare elements instead of the default
@code{equal}.
@example

View file

@ -567,7 +567,7 @@ This does not modify SEQUENCE1 or SEQUENCE2."
;;;###autoload
(cl-defgeneric seq-intersection (sequence1 sequence2 &optional testfn)
"Return copy of SEQUENCE1 with elements that appear in SEQUENCE2 removed.
"Return copy of SEQUENCE1 with elements that do not appear in SEQUENCE2 removed.
\"Equality\" of elements is defined by the function TESTFN, which
defaults to `equal'.
This does not modify SEQUENCE1 or SEQUENCE2."