Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1b4449b

Browse files
committed
pool: fix documentation
1 parent 232a7e3 commit 1b4449b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pool.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ typedef struct {
3838
*
3939
* To allocation strings, use like this:
4040
*
41-
* git_pool_init(&string_pool, 1, 0);
41+
* git_pool_init(&string_pool, 1);
4242
* my_string = git_pool_strdup(&string_pool, your_string);
4343
*
4444
* To allocate items of fixed size, use like this:
4545
*
46-
* git_pool_init(&pool, sizeof(item), 0);
46+
* git_pool_init(&pool, sizeof(item));
4747
* my_item = git_pool_malloc(&pool, 1);
4848
*
4949
* Of course, you can use this in other ways, but those are the

0 commit comments

Comments
 (0)