Skip to content

Commit f04c5cd

Browse files
Merge pull request #1 from SYaoJun/master
fix some typos
2 parents bffbfd2 + 98a8dce commit f04c5cd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This is a collection of basic libraries.
1515
## Data Struct
1616
| | |
1717
|--|--|
18-
| libdict: Hash key-value dictonary library | libhash: Hash key-value library based on hlist from kernel |
18+
| libdict: Hash key-value dictionary library | libhash: Hash key-value library based on hlist from kernel |
1919
| libringbuffer: | libqueue: queue library, support memory hook |
2020
| librbtree: comes from linux kernel rbtree. | libsort: |
2121
| libvector: | libdarray: Dynamic array |

gear-lib/libgevent/libgevent.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ void gevent_destroy(struct gevent *e)
321321
int gevent_add(struct gevent_base *eb, struct gevent **e)
322322
{
323323
if (!e || !eb) {
324-
printf("%s:%d paraments is NULL\n", __func__, __LINE__);
324+
printf("%s:%d parameters is NULL\n", __func__, __LINE__);
325325
return -1;
326326
}
327327
da_push_back(eb->ev_array, e);
@@ -332,7 +332,7 @@ int gevent_del(struct gevent_base *eb, struct gevent **e)
332332
{
333333
int ret;
334334
if (!e || !eb) {
335-
printf("%s:%d paraments is NULL\n", __func__, __LINE__);
335+
printf("%s:%d parameters is NULL\n", __func__, __LINE__);
336336
return -1;
337337
}
338338
ret = eb->ops->del(eb, *e);
@@ -343,7 +343,7 @@ int gevent_del(struct gevent_base *eb, struct gevent **e)
343343
int gevent_mod(struct gevent_base *eb, struct gevent **e)
344344
{
345345
if (!e || !eb) {
346-
printf("%s:%d paraments is NULL\n", __func__, __LINE__);
346+
printf("%s:%d parameters is NULL\n", __func__, __LINE__);
347347
return -1;
348348
}
349349
da_erase_item(eb->ev_array, e);

0 commit comments

Comments
 (0)