Function: rx--check-repeat-arg
rx--check-repeat-arg is a byte-compiled function defined in rx.el.gz.
Signature
(rx--check-repeat-arg NAME MIN-ARGS BODY)
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/rx.el.gz
(defun rx--check-repeat-arg (name min-args body)
(unless (>= (length body) min-args)
(error "rx `%s' requires at least %d argument%s"
name min-args (if (= min-args 1) "" "s")))
;; There seems to be no reason to disallow zero counts.
(unless (natnump (car body))
(error "rx `%s' first argument must be nonnegative" name)))