From 82e1cac1c739b3191f41080ae8a042326a1fe4eb Mon Sep 17 00:00:00 2001 From: Behnejad <3690943+behnejad@users.noreply.github.com> Date: Sun, 29 May 2022 18:22:56 +0430 Subject: [PATCH] Update README.md added missing parameter in sample code of `mg_match`. --- docs/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/README.md b/docs/README.md index 68ee8098..885237b2 100644 --- a/docs/README.md +++ b/docs/README.md @@ -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`. } ```