Re: Assorted typo fixes
Shubham Khanna <khannashubham1197@gmail.com>
From: Shubham Khanna <khannashubham1197@gmail.com>
To: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Cc: pgsql-hackers@postgresql.org
Date: 2024-01-01T09:03:45Z
Lists: pgsql-hackers
On Thu, Dec 28, 2023 at 3:21 AM Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> wrote: > > Hi folks, > > I was playing around with the `typos` tool > (https://github.com/crate-ci/typos), and thought I'd run it on the > posgres repo for fun. After a bit of tweaking to get rid of most false > positives (see separately attached .typos.toml file), it came up with a > useful set of suggestions, some of which I applied verbatim, others > which needed a bit more rewording. > > Attached is a series of patches. The first one are what I consider > obvious, unambiguous fixes to code comments. The subsequent ones are > fixes for actual code (variable, function, type names) and docs, one > patch per class of typo. As far as I can tell, none of the code changes > (except the ECPG one, see below) affect anything exported, so this > should not cause any compatibility issues for extensions. > > The ECPG change affects the generated C code, but from my reading of the > callers in descriptor.c and ecpg.trailer, any code that would have > caused it to encounter the affected enum value would fail to compile, so > either the case is not possible, or nobody actually uses whatever syntax > is affected (I don't know enough about ECPG to tell without spending far > too much time digging in the code). I was reviewing the Patch and came across a minor issue that the Patch does not apply on the current Head. Please provide the updated version of the patch. Also, I found one typo: 0008-ecpg-fix-typo-in-get_dtype-return-value-for-ECPGd_co.patch All the other enum values return a string mathing the enum label, but this has had a trailing r since the function was added in commit 339a5bbfb17ecd171ebe076c5bf016c4e66e2c0a Here 'mathing' should be 'matching'. Thanks and Regards, Shubham Khanna.
Commits
-
doc: fix typo "vertexes" -> "vertices"
- 793ecff7df80 17.0 landed
-
Fix some typos
- 359a3c586d7f 17.0 landed
-
jsonpath_exec: fix typo "absense" -> "absence"
- 5bc7b33b4e16 17.0 landed
-
libpq: fix typo "occurences" -> "occurrences" in tests
- ff09129bec28 17.0 landed
-
gist: fix typo "split(t)ed" -> "split"
- e62e73f3a2f2 17.0 landed
-
tsquery: fix typo "rewrited" -> "rewritten"
- 591cf626e71b 17.0 landed
-
Fix typos in comments and in one isolation test.
- 0d9937d11856 17.0 landed
-
*** empty log message ***
- 339a5bbfb17e 7.1.1 cited