From beeba3cf17f1c3cde5c6157d0e2f7fdc5ecc6c11 Mon Sep 17 00:00:00 2001 From: Leonetienne Date: Sat, 5 Jun 2021 12:47:26 +0200 Subject: [PATCH] Typo readme --- readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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