@@ -470,9 +470,10 @@ jsonb_path_query_first(FunctionCallInfo fcinfo)
470470 * 'throwErrors' - whether we should throw suppressible errors
471471 * 'result' - list to store result items into
472472 *
473- * Returns an error happens during processing or NULL on no error.
473+ * Returns an error if a recoverable error happens during processing, or NULL
474+ * on no error.
474475 *
475- * Note, jsonb and jsonpath values should beavaliable and untoasted during
476+ * Note, jsonb and jsonpath values should beavailable and untoasted during
476477 * work because JsonPathItem, JsonbValue and result item could have pointers
477478 * into input values. If caller needs to just check if document matches
478479 * jsonpath, then it doesn't provide a result arg. In this case executor
@@ -1529,7 +1530,7 @@ executeBinaryArithmExpr(JsonPathExecContext *cxt, JsonPathItem *jsp,
15291530
15301531/*
15311532 * XXX: By standard only operands of multiplicative expressions are
1532- * unwrapped. We extend it to other binaryarithmetics expressions too.
1533+ * unwrapped. We extend it to other binaryarithmetic expressions too.
15331534 */
15341535jper = executeItemOptUnwrapResult (cxt ,& elem ,jb , true,& lseq );
15351536if (jperIsError (jper ))