Update README.md

added missing parameter in sample code of `mg_match`.
This commit is contained in:
Behnejad authored and GitHub committed 2022-05-29 18:22:56 +04:30
1 parent 21ffe8e3f3
commit 82e1cac1c7
1 file changed
+1 -1
+1 -1
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`.
}
```