From fedb4764a58244fa201b175eb41108e3933b8861 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Wed, 13 Oct 2021 23:09:57 -0700 Subject: [PATCH] regenerate readme --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 36cd3cd..6e87f79 100644 --- a/README.md +++ b/README.md @@ -28,13 +28,13 @@ refer to the [compatibility table](#compatibility) for specifics. validate the number of arguments in a function. ```sh -# usage: myfunc() { argc -(eq|le|ge) [0-9] "$0" "$@" || return; } +# usage: myfunc() { argc $# -(eq|le|ge) [0-9] "$0" || return; } myfunc() { # use one of the following: - argc -eq N "$0" "$@" || return - argc -le N "$0" "$@" || return - argc -ge N "$0" "$@" || return + argc $# -eq N "$0" || return + argc $# -le N "$0" || return + argc $# -ge N "$0" || return # where N is an integer between 0 and 9. } ```