Update README.md

added missing parameter in sample code of `mg_match`.
This commit is contained in:
Behnejad 2022-05-29 18:22:56 +04:30 committed by GitHub
parent 21ffe8e3f3
commit 82e1cac1c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2337,7 +2337,7 @@ Usage example:
```c
// Assume that hm->uri holds /foo/bar. Then we can match the requested URI:
struct mg_str caps[3]; // Two wildcard symbols '*' plus 1
if (mg_match(hm->uri, mg_str("/*/*"))) {
if (mg_match(hm->uri, mg_str("/*/*"), caps)) {
// caps[0] holds `foo`, caps[1] holds `bar`.
}
```