summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-04-09 20:58:11 +0200
committerTyge Løvset <[email protected]>2022-04-09 20:58:11 +0200
commit17e620fe3b3c42134a1139245c6590816c1ca6bf (patch)
tree9d5a35ac4ec66c83e4ca927c21e8013b13b1275d /examples
parent9e1ea5d14fb1835eb1ad1e45c8e8f02c9072ca57 (diff)
downloadSTC-modified-17e620fe3b3c42134a1139245c6590816c1ca6bf.tar.gz
STC-modified-17e620fe3b3c42134a1139245c6590816c1ca6bf.zip
- Switched from .._put() to .._push() as the "generic" method to add element to any container.
- Changed clist_X_insert()/emplace() to clist_X_insert_at()/emplace_at() to make it consistent with cvec/cdeq. - Updated documentation.
Diffstat (limited to 'examples')
-rw-r--r--examples/list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/list.c b/examples/list.c
index cbf282a5..2d672cf3 100644
--- a/examples/list.c
+++ b/examples/list.c
@@ -41,7 +41,7 @@ int main() {
puts("");
clist_fx_remove(&list, 30);
- clist_fx_insert(&list, clist_fx_begin(&list), 5); // same as push_front()
+ clist_fx_insert_at(&list, clist_fx_begin(&list), 5); // same as push_front()
clist_fx_push_back(&list, 500);
clist_fx_push_front(&list, 1964);
clist_fx_iter it = clist_fx_begin(&list);