summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-01-20 23:25:28 +0100
committerTyge Løvset <[email protected]>2021-01-20 23:25:28 +0100
commitf3901fb16ff2ffa71b73fcd80b13f66d25ba0702 (patch)
treee08849ad522b35a485309284dc086d23a3448773
parentb0716d34433af4714f9a0b68278579fa1dd2b24e (diff)
downloadSTC-modified-f3901fb16ff2ffa71b73fcd80b13f66d25ba0702.tar.gz
STC-modified-f3901fb16ff2ffa71b73fcd80b13f66d25ba0702.zip
Fixed README.md docs.
-rw-r--r--README.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/README.md b/README.md
index 6df8b7c7..1f20697d 100644
--- a/README.md
+++ b/README.md
@@ -49,7 +49,7 @@ int main(void) {
cvec_i_del(&vec);
}
```
-Here is five more...
+And five more containers...
```c
#include <stc/cmap.h>
#include <stc/csmap.h>
@@ -59,10 +59,10 @@ Here is five more...
#include <stdio.h>
// declare your container types
-using_cset(i, int); // unordered hash set
+using_cset(i, int); // unordered (hash) set
using_clist(i, int); // singly linked list
using_cdeq(i, int); // deque
-using_cqueue(i, cdeq_i); // deque, using deque as adapter
+using_cqueue(i, cdeq_i); // queue, using deque as adapter
using_csmap(i, int, int); // sorted map
int main(void) {
@@ -75,7 +75,7 @@ int main(void) {
// add one more element
cset_i_insert(&set, 40);
- clist_i_push_front(&list, 5);
+ clist_i_push_back(&list, 40);
cdeq_i_push_front(&deq, 5);
cqueue_i_push(&que, 40);
csmap_i_emplace(&map, 40, 4);
@@ -98,7 +98,7 @@ int main(void) {
Outputs
```
10 20 30 40
- 5 10 20 30
+ 10 20 30 40
5 10 20 30
10 20 30 40
(10: 1) (20: 2) (30: 3) (40: 4)