Skip to content

Commit 0b11a67

Browse files
committed
Fix a boatload of typos in C comments.
Justin Pryzby Discussion: https://postgr.es/m/[email protected]
1 parent 686d399 commit 0b11a67

File tree

29 files changed

+32
-32
lines changed

29 files changed

+32
-32
lines changed

contrib/pgcrypto/rijndael.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ gen_tabs(void)
163163
q;
164164

165165
/* log and power tables for GF(2**8) finite field with */
166-
/* 0x11b as modular polynomial - the simplest prmitive */
166+
/* 0x11b as modular polynomial - the simplest primitive */
167167
/* root is 0x11, used here to generate the tables */
168168

169169
for (i = 0, p = 1; i < 256; ++i)

src/backend/access/common/session.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ InitializeSession(void)
6060
* Initialize the per-session DSM segment if it isn't already initialized, and
6161
* return its handle so that worker processes can attach to it.
6262
*
63-
* Unlike the per-context DSM segment, this segement and its contents are
63+
* Unlike the per-context DSM segment, this segment and its contents are
6464
* reused for future parallel queries.
6565
*
6666
* Return DSM_HANDLE_INVALID if a segment can't be allocated due to lack of

src/backend/access/nbtree/nbtinsert.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,9 @@ _bt_doinsert(Relation rel, IndexTuple itup,
187187
_bt_relbuf(rel, buf);
188188

189189
/*
190-
* Something did not workout. Just forget about the cached
190+
* Something did not work out. Just forget about the cached
191191
* block and follow the normal path. It might be set again if
192-
* the conditions are favourble.
192+
* the conditions are favourable.
193193
*/
194194
RelationSetTargetBlock(rel, InvalidBlockNumber);
195195
}

src/backend/executor/execProcnode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ ExecSetExecProcNode(PlanState *node, ExecProcNodeMtd function)
409409
* Add a wrapper around the ExecProcNode callback that checks stack depth
410410
* during the first execution and maybe adds an instrumentation
411411
* wrapper. When the callback is changed after execution has already begun
412-
* that means we'll superflously execute ExecProcNodeFirst, but that seems
412+
* that means we'll superfluously execute ExecProcNodeFirst, but that seems
413413
* ok.
414414
*/
415415
node->ExecProcNodeReal = function;

src/backend/jit/llvm/llvmjit_expr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1768,7 +1768,7 @@ llvm_compile_expr(ExprState *state)
17681768
b_compare_result,
17691769
b_null);
17701770

1771-
/* build block analying the !NULL comparator result */
1771+
/* build block analyzing the !NULL comparator result */
17721772
LLVMPositionBuilderAtEnd(b, b_compare_result);
17731773

17741774
/* if results equal, compare next, otherwise done */

src/backend/optimizer/geqo/geqo_misc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ print_gen(FILE *fp, Pool *pool, int generation)
9292
{
9393
int lowest;
9494

95-
/* Get index to lowest ranking gene in poplulation. */
95+
/* Get index to lowest ranking gene in population. */
9696
/* Use 2nd to last since last is buffer. */
9797
lowest = pool->size > 1 ? pool->size - 2 : 0;
9898

src/backend/optimizer/plan/planner.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6709,7 +6709,7 @@ create_partial_grouping_paths(PlannerInfo *root,
67096709
* Gather Merge.
67106710
*
67116711
* NB: This function shouldn't be used for anything other than a grouped or
6712-
* partially grouped relation not only because of the fact that it explcitly
6712+
* partially grouped relation not only because of the fact that it explicitly
67136713
* references group_pathkeys but we pass "true" as the third argument to
67146714
* generate_gather_paths().
67156715
*/
@@ -6841,7 +6841,7 @@ apply_scanjoin_target_to_paths(PlannerInfo *root,
68416841
*/
68426842
rel->reltarget = llast_node(PathTarget, scanjoin_targets);
68436843

6844-
/* Special case: handly dummy relations separately. */
6844+
/* Special case: handle dummy relations separately. */
68456845
if (is_dummy_rel)
68466846
{
68476847
/*

src/backend/rewrite/rewriteHandler.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ adjustJoinTreeList(Query *parsetree, bool removert, int rt_index)
710710
* using the parent relation as reference. It must not do anything that
711711
* will not be correct when transposed to the child relation(s). (Step 4
712712
* is incorrect by this light, since child relations might have different
713-
* colun ordering, but the planner will fix things by re-sorting the tlist
713+
* column ordering, but the planner will fix things by re-sorting the tlist
714714
* for each child.)
715715
*/
716716
static List *

src/backend/storage/ipc/ipc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ on_shmem_exit(pg_on_exit_callback function, Datum arg)
374374
/* ----------------------------------------------------------------
375375
* cancel_before_shmem_exit
376376
*
377-
* this function removes a previously-registed before_shmem_exit
377+
* this function removes a previously-registered before_shmem_exit
378378
* callback. For simplicity, only the latest entry can be
379379
* removed. (We could work harder but there is no need for
380380
* current uses.)

src/backend/utils/adt/jsonfuncs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1172,7 +1172,7 @@ get_object_field_end(void *state, char *fname, bool isnull)
11721172
if (get_last && _state->result_start != NULL)
11731173
{
11741174
/*
1175-
* make a text object from the string from the prevously noted json
1175+
* make a text object from the string from the previously noted json
11761176
* start up to the end of the previous token (the lexer is by now
11771177
* ahead of us on whatever came after what we're interested in).
11781178
*/

0 commit comments

Comments
 (0)