summaryrefslogtreecommitdiffhomepage
path: root/README.md
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-04-08 17:13:15 +0200
committerTyge Løvset <[email protected]>2022-04-08 17:13:15 +0200
commit770764da916b9e3783f2a95b2da62cb930b6702b (patch)
treee68c5805afe38023a1dd386eb098dc0e3f1eecaf /README.md
parent3eb276a712cc5edad798e2c75acfe125de831243 (diff)
downloadSTC-modified-770764da916b9e3783f2a95b2da62cb930b6702b.tar.gz
STC-modified-770764da916b9e3783f2a95b2da62cb930b6702b.zip
Added cvec_X_lower_bound() function for sorted array search.
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 552f4e69..c31eb59d 100644
--- a/README.md
+++ b/README.md
@@ -340,7 +340,7 @@ c_autovar (cstr s = cstr_new("a string literal"), cstr_drop(&s)) // c_autovar i
cvec_str_emplace_back(&vec, "Yay, literal"); // internally constructs cstr from const char*
cvec_str_emplace_back(&vec, cstr_clone(s)); // <-- COMPILE ERROR: expects const char*
- cvec_str_emplace_back(&vec, s.str); // Ok: const char* input type.
+ cvec_str_emplace_back(&vec, cstr_str(&s)); // Ok: const char* input type.
}
```
This is made possible because the type configuration may be given an optional