diff --git a/readme.md b/readme.md index 91bb006..f22e890 100644 --- a/readme.md +++ b/readme.md @@ -247,9 +247,9 @@ pc.wantedType = DATA_TYPE::STRING; pc.defaultValue = {}; // no default value pc.required = true; -args.RegisterConstraints("--my-key", pc); +args.RegisterConstraint("--my-key", pc); ``` -What doesn't work is inserting multiple constraints for one key. It will just discard the oldest one. But that's okay because one can describe all possible constraints for a single key in **one** struct. +What doesn't work is inserting multiple constraints for one key. It will just discard the older one. But that's okay because one can describe all possible constraints for a single key in **one** struct. ## Automatic parameter documentation