diff options
| author | Tyge Lovset <[email protected]> | 2022-10-07 07:32:45 +0200 |
|---|---|---|
| committer | Tyge Lovset <[email protected]> | 2022-10-07 07:32:45 +0200 |
| commit | 12d854b17371903253cd54e8cbb1a947b637de83 (patch) | |
| tree | 50bcfa6ef6829287f6cc7eb8033cc0f95f7b039f /docs | |
| parent | 905fe02e9c258c8ac8d7aebb439c7039f7109cb1 (diff) | |
| download | STC-modified-12d854b17371903253cd54e8cbb1a947b637de83.tar.gz STC-modified-12d854b17371903253cd54e8cbb1a947b637de83.zip | |
Rename c_find_in() to overload c_find_if().
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ccommon_api.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ccommon_api.md b/docs/ccommon_api.md index 1cdc56cb..32f2f3dc 100644 --- a/docs/ccommon_api.md +++ b/docs/ccommon_api.md @@ -298,7 +298,7 @@ if (i.ref) printf("%d\n", *i.ref); // Search map for a string containing "hello" and erase it: cmap_str_iter it, it1 = ..., it2 = ...; -c_find_in(it, csmap_str, it1, it2, cstr_contains(it.ref, "hello")); +c_find_if(it, csmap_str, it1, it2, cstr_contains(it.ref, "hello")); if (it.ref) cmap_str_erase_at(&map, it); // Erase all strings containing "hello": |
