mirror of
https://github.com/kgabis/parson.git
synced 2025-01-14 06:12:54 +08:00
Fixed error in the readme file.
This commit is contained in:
parent
120f5a08da
commit
a3bb4c7390
@ -20,7 +20,7 @@ Run tests.sh to compile and run tests.
|
|||||||
##Example
|
##Example
|
||||||
Here is a function, which prints basic commit info (date, sha and author) from a github repository. It's also included in tests.c file, you can just uncomment and run it.
|
Here is a function, which prints basic commit info (date, sha and author) from a github repository. It's also included in tests.c file, you can just uncomment and run it.
|
||||||
```c
|
```c
|
||||||
void print_commit_info(const char *username, const char *repo) {
|
void print_commits_info(const char *username, const char *repo) {
|
||||||
JSON_Value *root_value;
|
JSON_Value *root_value;
|
||||||
JSON_Array *commits;
|
JSON_Array *commits;
|
||||||
JSON_Object *commit;
|
JSON_Object *commit;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user