Commit 1b4449b4 by Edward Thomson

pool: fix documentation

parent 232a7e32
...@@ -38,12 +38,12 @@ typedef struct { ...@@ -38,12 +38,12 @@ typedef struct {
* *
* To allocation strings, use like this: * To allocation strings, use like this:
* *
* git_pool_init(&string_pool, 1, 0); * git_pool_init(&string_pool, 1);
* my_string = git_pool_strdup(&string_pool, your_string); * my_string = git_pool_strdup(&string_pool, your_string);
* *
* To allocate items of fixed size, use like this: * To allocate items of fixed size, use like this:
* *
* git_pool_init(&pool, sizeof(item), 0); * git_pool_init(&pool, sizeof(item));
* my_item = git_pool_malloc(&pool, 1); * my_item = git_pool_malloc(&pool, 1);
* *
* Of course, you can use this in other ways, but those are the * Of course, you can use this in other ways, but those are the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment