fix typos
This commit is contained in:
1 parent
503fae5dc9
commit
5b9e63e4af
7 files changed
+10
-10
No files matched your search
+2
-2
@@ -1465,7 +1465,7 @@ static jv f_gmtime(jq_state *jq, jv a) {
|
||||
jv_free(a);
|
||||
tmp = gmtime_r(&secs, &tm);
|
||||
if (tmp == NULL)
|
||||
return jv_invalid_with_msg(jv_string("errror converting number of seconds since epoch to datetime"));
|
||||
return jv_invalid_with_msg(jv_string("error converting number of seconds since epoch to datetime"));
|
||||
a = tm2jv(tmp);
|
||||
return jv_array_set(a, 5, jv_number(jv_number_value(jv_array_get(jv_copy(a), 5)) + (fsecs - floor(fsecs))));
|
||||
}
|
||||
@@ -1480,7 +1480,7 @@ static jv f_gmtime(jq_state *jq, jv a) {
|
||||
jv_free(a);
|
||||
tmp = gmtime(&secs);
|
||||
if (tmp == NULL)
|
||||
return jv_invalid_with_msg(jv_string("errror converting number of seconds since epoch to datetime"));
|
||||
return jv_invalid_with_msg(jv_string("error converting number of seconds since epoch to datetime"));
|
||||
a = tm2jv(tmp);
|
||||
return jv_array_set(a, 5, jv_number(jv_number_value(jv_array_get(jv_copy(a), 5)) + (fsecs - floor(fsecs))));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user