Skip to content

Commit 20b4323

Browse files
committed
C comments: "a" <--> "an" corrections
Reported-by: Michael Paquier, Abhijit Menon-Sen Discussion: https://postgr.es/m/20180305045854.GB2266@paquier.xyz Author: Michael Paquier, Abhijit Menon-Sen, me
1 parent 3282c4c commit 20b4323

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

config/c-library.m4

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ AC_DEFUN([PGAC_STRUCT_ADDRINFO],
177177
# handle ll, q, and I64. The result is in shell variable
178178
# LONG_LONG_INT_MODIFIER.
179179
#
180-
# MinGW uses '%I64d', though gcc throws an warning with -Wall,
180+
# MinGW uses '%I64d', though gcc throws a warning with -Wall,
181181
# while '%lld' doesn't generate a warning, but doesn't work.
182182
#
183183
AC_DEFUN([PGAC_FUNC_SNPRINTF_LONG_LONG_INT_MODIFIER],

src/backend/access/gin/ginvacuum.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ ginVacuumPostingTreeLeaves(GinVacuumState *gvs, BlockNumber blkno, bool isRoot)
381381

382382
/*
383383
* All subtree is empty - just return true to indicate that parent
384-
* must do a cleanup. Unless we are ROOT an there is way to go upper.
384+
* must do a cleanup, unless we are ROOT and there is way to go upper.
385385
*/
386386

387387
if (hasEmptyChild && !hasNonEmptyChild && !isRoot)

src/backend/catalog/aclchk.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -5280,7 +5280,7 @@ pg_extension_ownercheck(Oid ext_oid, Oid roleid)
52805280
}
52815281

52825282
/*
5283-
* Ownership check for an publication (specified by OID).
5283+
* Ownership check for a publication (specified by OID).
52845284
*/
52855285
bool
52865286
pg_publication_ownercheck(Oid pub_oid, Oid roleid)

src/backend/commands/cluster.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1539,7 +1539,7 @@ finish_heap_swap(Oid OIDOldHeap, Oid OIDNewHeap,
15391539
frozenXid, cutoffMulti, mapped_tables);
15401540

15411541
/*
1542-
* If it's a system catalog, queue an sinval message to flush all
1542+
* If it's a system catalog, queue a sinval message to flush all
15431543
* catcaches on the catalog when we reach CommandCounterIncrement.
15441544
*/
15451545
if (is_system_catalog)

src/backend/executor/instrument.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ InstrAlloc(int n, int instrument_options)
4949
return instr;
5050
}
5151

52-
/* Initialize an pre-allocated instrumentation structure. */
52+
/* Initialize a pre-allocated instrumentation structure. */
5353
void
5454
InstrInit(Instrumentation *instr, int instrument_options)
5555
{

src/backend/libpq/pqformat.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ pq_beginmessage(StringInfo buf, char msgtype)
100100
101101
* pq_beginmessage_reuse - initialize for sending a message, reuse buffer
102102
*
103-
* This requires the buffer to be allocated in an sufficiently long-lived
103+
* This requires the buffer to be allocated in a sufficiently long-lived
104104
* memory context.
105105
* --------------------------------
106106
*/

src/backend/nodes/readfuncs.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
token = pg_strtok(&length); /* get field value */ \
7878
local_node->fldname = pg_strtouint64(token, NULL, 10)
7979

80-
/* Read an long integer field (anything written as ":fldname %ld") */
80+
/* Read a long integer field (anything written as ":fldname %ld") */
8181
#define READ_LONG_FIELD(fldname) \
8282
token = pg_strtok(&length); /* skip :fldname */ \
8383
token = pg_strtok(&length); /* get field value */ \

src/backend/utils/adt/nabstime.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ reltime2tm(RelativeTime time, struct pg_tm *tm)
694694

695695

696696
/*
697-
* tintervalin - converts an tinterval string to internal format
697+
* tintervalin - converts a tinterval string to internal format
698698
*/
699699
Datum
700700
tintervalin(PG_FUNCTION_ARGS)

src/backend/utils/cache/relcache.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2420,7 +2420,7 @@ RelationDestroyRelation(Relation relation, bool remember_tupdesc)
24202420
* NB: when rebuilding, we'd better hold some lock on the relation,
24212421
* else the catalog data we need to read could be changing under us.
24222422
* Also, a rel to be rebuilt had better have refcnt > 0. This is because
2423-
* an sinval reset could happen while we're accessing the catalogs, and
2423+
* a sinval reset could happen while we're accessing the catalogs, and
24242424
* the rel would get blown away underneath us by RelationCacheInvalidate
24252425
* if it has zero refcnt.
24262426
*

src/bin/pgbench/t/001_pgbench_with_server.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ sub pgbench
583583
0,
584584
[ qr{cannot coerce boolean to int} ],
585585
q{\set i TRUE + 2} ],
586-
[ 'set not an double',
586+
[ 'set not a double',
587587
0,
588588
[ qr{cannot coerce boolean to double} ],
589589
q{\set d ln(TRUE)} ],

0 commit comments

Comments
 (0)