summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorAndrew Dunstan2024-04-09 19:30:48 +0000
committerAndrew Dunstan2024-04-12 14:32:30 +0000
commit42fa4b660143b66bea1fb90793ec90054e170c93 (patch)
tree058096389cf8c17ab2dceb0b8b9fb7bf55ad522c /src/common
parentb8a7bfa33324bc40c7180cb946a39378fb48309c (diff)
Assorted minor cleanups in the test_json_parser module
Per gripes from Michael Paquier Discussion: https://postgr.es/m/ZhTQ6_w1vwOhqTQI@paquier.xyz Along the way, also clean up a handful of typos in 3311ea86ed and ea7b4e9a2a, found by Alexander Lakhin, and a couple of stylistic snafus noted by Daniel Westermann and Daniel Gustafsson.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/jsonapi.c6
-rw-r--r--src/common/parse_manifest.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/common/jsonapi.c b/src/common/jsonapi.c
index 9dfbc397c06..12fabcaccf4 100644
--- a/src/common/jsonapi.c
+++ b/src/common/jsonapi.c
@@ -356,7 +356,7 @@ makeJsonLexContextCstringLen(JsonLexContext *lex, char *json,
* need explicit stacks for predictions, field names and null indicators, but
* we don't need the input, that will be handed in bit by bit to the
* parse routine. We also need an accumulator for partial tokens in case
- * the boundary between chunks happns to fall in the middle of a token.
+ * the boundary between chunks happens to fall in the middle of a token.
*/
#define JS_STACK_CHUNK_SIZE 64
#define JS_MAX_PROD_LEN 10 /* more than we need */
@@ -1414,9 +1414,9 @@ json_lex(JsonLexContext *lex)
}
/*
- * Add any remaining alpha_numeric chars. This takes care of the
+ * Add any remaining alphanumeric chars. This takes care of the
* {null, false, true} literals as well as any trailing
- * alpha-numeric junk on non-string tokens.
+ * alphanumeric junk on non-string tokens.
*/
for (int i = added; i < lex->input_length; i++)
{
diff --git a/src/common/parse_manifest.c b/src/common/parse_manifest.c
index a94e3d6b154..821fba3967a 100644
--- a/src/common/parse_manifest.c
+++ b/src/common/parse_manifest.c
@@ -806,7 +806,7 @@ json_manifest_finalize_wal_range(JsonManifestParseState *parse)
* the rest of the file.
*
* For an incremental parse, this will just be called on the last chunk of the
- * manifest, and the cryptohash context paswed in. For a non-incremental
+ * manifest, and the cryptohash context passed in. For a non-incremental
* parse incr_ctx will be NULL.
*/
static void