Skip to content

Commit 41e4aa2

Browse files
committed
Fix readme.
1 parent 553acb0 commit 41e4aa2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The tree rebalancing implementation is based on the AVL (Adelson-Velsky and Land
1111
# Usage
1212
Creating an instace of set:
1313
```C
14-
int int_cmp(const void * pv1, const void * pv2)
14+
int int_cmp(const void * pv1, const void * pv2, void * thunk)
1515
{
1616
const int v1 = *((const int*) pv1);
1717
const int v2 = *((const int*) pv2);
@@ -23,7 +23,7 @@ int int_cmp(const void * pv1, const void * pv2)
2323
return 0;
2424
}
2525
...
26-
buffer_set_t * buffer_set = buffer_set_create(sizeof(int), 16/*initial capacity*/, &int_cmp);
26+
buffer_set_t * buffer_set = buffer_set_create(sizeof(int), 16/*initial capacity*/, &int_cmp, /*thunk*/NULL);
2727
```
2828
Inserting a new element:
2929
```C

0 commit comments

Comments
 (0)