fix typos
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Alanscut · committed by Nico Williams · parent 503fae5 · Browse files · 7 files·+10 added−10 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
7 files+10 added−10 removed
- tests:+2 added−2 removed
- other:+8 added−8 removed
Provenance
- Commit
5b9e63e- Tree
da6e6a9- Author
Alanscut <wp_scut@163.com>- Committer
Nico Williams <nico@cryptonector.com>- Parent
503fae5
7 files changed+10 added−10 removed
modified:docs/content/manual/v1.3/manual.yml+1 added-1 removed
1230 unmodified lines1231 1232 - title: Complex assignments1233 body: |1234 Lots more things are allowed on the left-hand side of a jq assignment1235- than in most langauges. We've already seen simple field accesses on1235+ than in most languages. We've already seen simple field accesses on1236 the left hand side, and it's no surprise that array accesses work just1237 as well:1238 1239 .posts[0].title = "JQ Manual"31 unmodified linesmodified:docs/content/manual/v1.4/manual.yml+1 added-1 removed
1632 unmodified lines1633 1634 - title: Complex assignments1635 body: |1636 Lots more things are allowed on the left-hand side of a jq assignment1637- than in most langauges. We've already seen simple field accesses on1637+ than in most languages. We've already seen simple field accesses on1638 the left hand side, and it's no surprise that array accesses work just1639 as well:1640 1641 .posts[0].title = "JQ Manual"31 unmodified linesmodified:src/builtin.c+2 added-2 removed
1463 unmodified lines1464 time_t secs = fsecs;1465 jv_free(a);1466 tmp = gmtime_r(&secs, &tm);1467 if (tmp == NULL)1468- return jv_invalid_with_msg(jv_string("errror converting number of seconds since epoch to datetime"));1468+ return jv_invalid_with_msg(jv_string("error converting number of seconds since epoch to datetime"));1469 a = tm2jv(tmp);1470 return jv_array_set(a, 5, jv_number(jv_number_value(jv_array_get(jv_copy(a), 5)) + (fsecs - floor(fsecs))));1471 }1472 #elif defined HAVE_GMTIME6 unmodified lines1479 time_t secs = fsecs;1480 jv_free(a);1481 tmp = gmtime(&secs);1482 if (tmp == NULL)1483- return jv_invalid_with_msg(jv_string("errror converting number of seconds since epoch to datetime"));1483+ return jv_invalid_with_msg(jv_string("error converting number of seconds since epoch to datetime"));1484 a = tm2jv(tmp);1485 return jv_array_set(a, 5, jv_number(jv_number_value(jv_array_get(jv_copy(a), 5)) + (fsecs - floor(fsecs))));1486 }1487 #else328 unmodified linesmodified:src/compile.h+1 added-1 removed
85 unmodified lines86 87 88 89 // Here's some horrible preprocessor gunk so that code90-// sequences can be contructed as BLOCK(block1, block2, block3)90+// sequences can be constructed as BLOCK(block1, block2, block3)91 92 #define BLOCK_1(b1) (b1)93 #define BLOCK_2(b1,b2) (block_join((b1),(b2)))94 #define BLOCK_3(b1,b2,b3) (block_join(BLOCK_2(b1,b2),(b3)))12 unmodified linesmodified:tests/jq.test+2 added-2 removed
320 unmodified lines321 null322 1323 324 #325-# Check that various builtins evalute all arguments where appropriate,325+# Check that various builtins evaluate all arguments where appropriate,326 # doing cartesian products where appropriate.327 #328 329 # Check that limit does work for each value produced by n!1384 unmodified lines1714 139118603664323821715 1716 . |= try . catch .1717 11718-11718+1modified:configure.ac+2 added-2 removed
226 unmodified lines227 228 AC_C_BIGENDIAN(229 AC_DEFINE([IEEE_MC68k], 1, [machine is bigendian]),230 AC_DEFINE([IEEE_8087], 1, [machine is littleendian]),231- AC_MSG_ERROR(unknown endianess),232- AC_MSG_ERROR(universial endianess not supported)231+ AC_MSG_ERROR(unknown endianness),232+ AC_MSG_ERROR(universial endianness not supported)233 )234 235 dnl Oniguruma236 AC_ARG_WITH([oniguruma],49 unmodified linesmodified:jq.1.prebuilt+1 added-1 removed
56 unmodified lines57 .IP "\(bu" 458 \fB\-\-stream\fR:59 .60 .IP61-Parse the input in streaming fashion, outputing arrays of path and leaf values (scalars and empty arrays or empty objects)\. For example, \fB"a"\fR becomes \fB[[],"a"]\fR, and \fB[[],"a",["b"]]\fR becomes \fB[[0],[]]\fR, \fB[[1],"a"]\fR, and \fB[[1,0],"b"]\fR\.61+Parse the input in streaming fashion, outputting arrays of path and leaf values (scalars and empty arrays or empty objects)\. For example, \fB"a"\fR becomes \fB[[],"a"]\fR, and \fB[[],"a",["b"]]\fR becomes \fB[[0],[]]\fR, \fB[[1],"a"]\fR, and \fB[[1,0],"b"]\fR\.62 .63 .IP64 This is useful for processing very large inputs\. Use this in conjunction with filtering and the \fBreduce\fR and \fBforeach\fR syntax to reduce large inputs incrementally\.65 .3394 unmodified lines