Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
srdja committed Mar 30, 2016
1 parent 928d2ca commit 2929518
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ if (array_new(&ar) != CC_OK) {
}
// Add an element
enum cc_stat status = array_add(vec, "foo");
enum cc_stat status = array_add(ar, "foo");
if (status == CC_OK) {
...
} else if (status == CC_ERR_ALLOC) {
Expand All @@ -56,13 +56,13 @@ if (status == CC_OK) {
// Retrieve a value
char *foo;
array_get(vec, 0, (void*) &foo);
array_get_at(ar, 0, (void*) &foo);
// Remove a value
char *removed;
array_remove_at(vec, 0, (void*) &removed);
array_remove_at(ar, 0, (void*) &removed);
array_destroy(vec);
array_destroy(ar);
```
## Installation

Expand Down

0 comments on commit 2929518

Please sign in to comment.