Skip to content

Commit 5956b59

Browse files
committed
fixup allocpool: fixed some typo
Signed-off-by: John Sanpe <[email protected]>
1 parent 7df3dcf commit 5956b59

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/manual/en_US/allocpool.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ static char block[4096];
2121
BFDEV_DEFINE_ALLOCPOOL(foo, block, sizeof(block));
2222

2323
/* initialize int allocpool named bar using malloc */
24-
struct bfdev_allocpool *bar;
24+
struct bfdev_allocpool bar;
2525
void *block;
2626

2727
block = malloc(4096);
28-
bar = bfdev_allocpool_init(&bar, block, 4096);
28+
bfdev_allocpool_init(&bar, block, 4096);
2929
```
3030
3131
Use the following functions to alloc and free in an allocpool:
@@ -40,5 +40,4 @@ int *foo;
4040
4141
foo = bfdev_allocpool_alloc(allocpool, 4, 0);
4242
bfdev_allocpool_free(allocpool, foo);
43-
4443
```

0 commit comments

Comments
 (0)