Merge pull request #1564 from behnejad/patch-1

Update README.md
This commit is contained in:
Sergey Lyubka authored and GitHub committed 2022-05-30 14:32:17 +01:00
commit a4a70270ee
1 file changed
+1 -1
+1 -1
View File
@@ -2337,7 +2337,7 @@ Usage example:
```c ```c
// Assume that hm->uri holds /foo/bar. Then we can match the requested URI: // Assume that hm->uri holds /foo/bar. Then we can match the requested URI:
struct mg_str caps[3]; // Two wildcard symbols '*' plus 1 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`. // caps[0] holds `foo`, caps[1] holds `bar`.
} }
``` ```