summaryrefslogtreecommitdiffhomepage
path: root/docs/ccommon_api.md
diff options
context:
space:
mode:
authorTyge Lovset <[email protected]>2022-10-07 07:32:45 +0200
committerTyge Lovset <[email protected]>2022-10-07 07:32:45 +0200
commit12d854b17371903253cd54e8cbb1a947b637de83 (patch)
tree50bcfa6ef6829287f6cc7eb8033cc0f95f7b039f /docs/ccommon_api.md
parent905fe02e9c258c8ac8d7aebb439c7039f7109cb1 (diff)
downloadSTC-modified-12d854b17371903253cd54e8cbb1a947b637de83.tar.gz
STC-modified-12d854b17371903253cd54e8cbb1a947b637de83.zip
Rename c_find_in() to overload c_find_if().
Diffstat (limited to 'docs/ccommon_api.md')
-rw-r--r--docs/ccommon_api.md2
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":