diff options
Diffstat (limited to 'docs/cregex_api.md')
| -rw-r--r-- | docs/cregex_api.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/cregex_api.md b/docs/cregex_api.md index 5f7e9136..2a0b22a8 100644 --- a/docs/cregex_api.md +++ b/docs/cregex_api.md @@ -128,13 +128,13 @@ To iterate multiple matches in an input string, you may use ```c csview match[5] = {0}; while (cregex_find(&re, input, match, cre_m_next) == cre_success) - c_forrange (int, k, cregex_captures(&re)) + c_forrange (k, int, cregex_captures(&re)) printf("submatch %d: %.*s\n", k, c_ARGsv(match[k])); ``` There is also a safe macro which simplifies this: ```c c_formatch (it, &re, input) - c_forrange (int, k, cregex_captures(&re)) + c_forrange (k, int, cregex_captures(&re)) printf("submatch %d: %.*s\n", k, c_ARGsv(it.match[k])); ``` |
