From d1e8e8b3c0ff1c8677c3899a41e153584f670f64 Mon Sep 17 00:00:00 2001 From: linzhaoming Date: Sun, 17 Feb 2019 14:57:17 +0800 Subject: [PATCH] update README.md (#826) Fix the comment: consistent with others --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7cb5cee5..e406b8a8 100644 --- a/README.md +++ b/README.md @@ -389,7 +389,7 @@ The following validators are built in: - `MinimumNArgs(int)` - the command will report an error if there are not at least N positional args. - `MaximumNArgs(int)` - the command will report an error if there are more than N positional args. - `ExactArgs(int)` - the command will report an error if there are not exactly N positional args. -- `ExactValidArgs(int)` = the command will report and error if there are not exactly N positional args OR if there are any positional args that are not in the `ValidArgs` field of `Command` +- `ExactValidArgs(int)` - the command will report an error if there are not exactly N positional args OR if there are any positional args that are not in the `ValidArgs` field of `Command` - `RangeArgs(min, max)` - the command will report an error if the number of args is not between the minimum and maximum number of expected args. An example of setting the custom validator: