Typo readme

This commit is contained in:
Leonetienne 2021-06-05 12:47:26 +02:00
parent 839ab1ee2d
commit beeba3cf17

View File

@ -247,9 +247,9 @@ pc.wantedType = DATA_TYPE::STRING;
pc.defaultValue = {}; // no default value pc.defaultValue = {}; // no default value
pc.required = true; 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.
<span id="automatic-parameter-documentation"></span> <span id="automatic-parameter-documentation"></span>
## Automatic parameter documentation ## Automatic parameter documentation