* lisp/emacs-lisp/regexp-opt.el (regexp-opt): Fix type declaration.
authorAndrea Corallo <acorallo@gnu.org>
Tue, 30 Apr 2024 07:19:31 +0000 (09:19 +0200)
committerAndrea Corallo <acorallo@gnu.org>
Tue, 30 Apr 2024 07:19:31 +0000 (09:19 +0200)
lisp/emacs-lisp/regexp-opt.el

index 076232bc613faf33b877cdcf888d3a8b0396eafc..f23343a34c6e5e8250b8e215f702a9be0ab2f498 100644 (file)
@@ -130,7 +130,7 @@ usually more efficient than that of a simplified version:
      (concat (car parens)
              (mapconcat \\='regexp-quote strings \"\\\\|\")
              (cdr parens))))"
-  (declare (type (function (list) string))
+  (declare (type (function (list &optional t) string))
            (pure t) (side-effect-free t))
   (save-match-data
     ;; Recurse on the sorted list.