From 07dbb8ddc0b9f008a924adde31574319e2881906 Mon Sep 17 00:00:00 2001 From: Ewan Young Date: Fri, 12 Jun 2026 00:42:11 +0800 Subject: [PATCH] Fix some typos in code comments Fix three misspellings in comments, with no change to code: - float.c: "becase" -> "because" - ts_type.h: "agrs" -> "args" - pquery.c: "Querys" -> "Queries" --- src/backend/tcop/pquery.c | 2 +- src/backend/utils/adt/float.c | 2 +- src/include/tsearch/ts_type.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backend/tcop/pquery.c b/src/backend/tcop/pquery.c index ee731000820..e807cbdc24d 100644 --- a/src/backend/tcop/pquery.c +++ b/src/backend/tcop/pquery.c @@ -197,7 +197,7 @@ ProcessQuery(PlannedStmt *plan, * ChoosePortalStrategy * Select portal execution strategy given the intended statement list. * - * The list elements can be Querys or PlannedStmts. + * The list elements can be Queries or PlannedStmts. * That's more general than portals need, but plancache.c uses this too. * * See the comments in portal.h. diff --git a/src/backend/utils/adt/float.c b/src/backend/utils/adt/float.c index 262ea2b73ba..4c2ccdfbf3f 100644 --- a/src/backend/utils/adt/float.c +++ b/src/backend/utils/adt/float.c @@ -3965,7 +3965,7 @@ float8_regr_r2(PG_FUNCTION_ARGS) * Despite all these precautions, this formula can yield results outside * [0, 1] due to roundoff error. Clamp it to the expected range. * - * Note that result is guaranteed to be non-negative becase Sxx and Syy + * Note that result is guaranteed to be non-negative because Sxx and Syy * are non-negative, so we only need to clamp the upper end of the range. */ if (result > 1) diff --git a/src/include/tsearch/ts_type.h b/src/include/tsearch/ts_type.h index f0c68d0638a..0226220e421 100644 --- a/src/include/tsearch/ts_type.h +++ b/src/include/tsearch/ts_type.h @@ -195,7 +195,7 @@ typedef struct { QueryItemType type; int8 oper; /* see above */ - int16 distance; /* distance between agrs for OP_PHRASE */ + int16 distance; /* distance between args for OP_PHRASE */ uint32 left; /* pointer to left operand. Right operand is * item + 1, left operand is placed * item+item->left */ -- 2.47.3