diff options
author | Alanscut <wp_scut@163.com> | 2020-01-14 11:48:43 +0800 |
---|---|---|
committer | Nico Williams <nico@cryptonector.com> | 2020-01-14 10:18:22 -0600 |
commit | 5b9e63e4af339bc5867603f14441b4b4cbb9e175 (patch) | |
tree | da6e6a963869e2f302513f849bab33841c09d290 /src | |
parent | 503fae5dc957f627a337116634a28cf9e1c66b2a (diff) |
fix typos
Diffstat (limited to 'src')
-rw-r--r-- | src/builtin.c | 4 | ||||
-rw-r--r-- | src/compile.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/builtin.c b/src/builtin.c index 139bdfe6..25af2864 100644 --- a/src/builtin.c +++ b/src/builtin.c @@ -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)))); } diff --git a/src/compile.h b/src/compile.h index f9e8cd55..cccd661d 100644 --- a/src/compile.h +++ b/src/compile.h @@ -87,7 +87,7 @@ void block_free(block); // Here's some horrible preprocessor gunk so that code -// sequences can be contructed as BLOCK(block1, block2, block3) +// sequences can be constructed as BLOCK(block1, block2, block3) #define BLOCK_1(b1) (b1) #define BLOCK_2(b1,b2) (block_join((b1),(b2))) |