Skip to content

Commit 676bb45

Browse files
authored
Correct typos in documentation and tests (#856)
* Correct typos in documentation and tests * Change 'formated' to 'formatted'
1 parent f174e9e commit 676bb45

29 files changed

Lines changed: 37 additions & 37 deletions

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ The main changes of this release are:
247247
- It is possible to `pg_autoctl create postgres` when PGDATA is an already
248248
existing data_directory: as usual the monitor decides if that node is
249249
going to be a primary or a standby. All the Postgres nodes in the same
250-
group must have the same Postgres system identifer, and that is now
250+
group must have the same Postgres system identifier, and that is now
251251
enforced on the monitor.
252252

253253
#### Added

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ The command `pg_autoctl perform switchover` can be used to force
214214
pg_auto_failover to orchestrate a failover. Because all the nodes are
215215
actually running fine (meaning that `pg_autoctl` actively reports the local
216216
state of each node to the monitor), the failover process does not have to
217-
carefuly implement timeouts to make sure to avoid split-brain.
217+
carefully implement timeouts to make sure to avoid split-brain.
218218

219219
~~~ bash
220220
$ pg_autoctl perform switchover

ci/banned.h.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ grep -E '\b(strcat|strcpy|strerror|strncat|strncpy|strtok|wcscat|wcscpy|wcsncat
3838
# shellcheck disable=SC2086
3939
grep -E '\b(wnsprintf|wnsprintfA|wnsprintfW|_snwprintf|_snprintf|_sntprintf|_vsnprintf|vsnprintf|_vsnwprintf|_vsntprintf|wvnsprintf|wvnsprintfA|wvnsprintfW|strtok|_tcstok|wcstok|_mbstok|makepath|_tmakepath| _makepath|_wmakepath|_splitpath|_tsplitpath|_wsplitpath|scanf|wscanf|_tscanf|sscanf|swscanf|_stscanf|snscanf|snwscanf|_sntscanf|_itoa|_itow|_i64toa|_i64tow|_ui64toa|_ui64tot|_ui64tow|_ultoa|_ultot|_ultow|CharToOem|CharToOemA|CharToOemW|OemToChar|OemToCharA|OemToCharW|CharToOemBuffA|CharToOemBuffW|alloca|_alloca|ChangeWindowMessageFilter)\(' $files \
4040
| grep -v "IGNORE-BANNED" \
41-
&& echo "ERROR: Recomended banned API usage detected" && exit 1
41+
&& echo "ERROR: Recommended banned API usage detected" && exit 1
4242

4343
# Recommended banned from table on liquid. If you can change the code not to use these
4444
# that would be great. You can use IGNORE-BANNED if you need to use it anyway.
@@ -50,5 +50,5 @@ grep -E '\b(wnsprintf|wnsprintfA|wnsprintfW|_snwprintf|_snprintf|_sntprintf|_vsn
5050
# shellcheck disable=SC2086
5151
grep -E '\b(alloca|getwd|mktemp|tmpnam|wcrtomb|wcrtombs|wcslen|wcsrtombs|wcstombs|wctomb|class_addMethod|class_replaceMethod)\(' $files \
5252
| grep -v "IGNORE-BANNED" \
53-
&& echo "ERROR: Recomended banned API usage detected" && exit 1
53+
&& echo "ERROR: Recommended banned API usage detected" && exit 1
5454
exit 0

docs/how-to.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ or development purposes.
8484
When running several ``pg_autoctl`` nodes on the same machine for testing
8585
or contributing to pg_auto_failover, each Postgres instance needs to run
8686
on its own port, and with its own data directory. It can make things
87-
easier to then set the environement variables ``PGDATA`` and ``PGPORT``
87+
easier to then set the environment variables ``PGDATA`` and ``PGPORT``
8888
in each terminal, shell, or tab where each instance is started.
8989

9090
Inspecting nodes

docs/operations.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ the following commands.
385385

386386
1. Apply the STONITH approach on the old monitor to make sure this node is
387387
not going to show up again during the procedure. This step is sometimes
388-
refered to as “fencing”.
388+
referred to as “fencing”.
389389

390390
2. On every node, ending with the (current) Postgres primary node for each
391391
group, disable the monitor while ``pg_autoctl`` is still running::

docs/ref/pg_autoctl_config_check.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Options
2828

2929
--json
3030

31-
Output JSON formated data.
31+
Output JSON formatted data.
3232

3333
Examples
3434
--------

docs/ref/pg_autoctl_config_get.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Options
2626

2727
--json
2828

29-
Output JSON formated data.
29+
Output JSON formatted data.
3030

3131
Description
3232
-----------
@@ -83,7 +83,7 @@ Without arguments, we get the entire file::
8383
postgresql_restart_failure_timeout = 20
8484
postgresql_restart_failure_max_retries = 3
8585

86-
It is possible to pipe JSON formated output to the ``jq`` command line and
86+
It is possible to pipe JSON formatted output to the ``jq`` command line and
8787
filter the result down to a specific section of the file::
8888

8989
$ pg_autoctl config get --pgdata node1 --json | jq .pg_autoctl

docs/ref/pg_autoctl_config_set.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Options
2626

2727
--json
2828

29-
Output JSON formated data.
29+
Output JSON formatted data.
3030

3131
Description
3232
-----------

docs/ref/pg_autoctl_create_postgres.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ corresponding to as many implementation strategies.
5858
The monitor answers to the registration call with a state to assign to
5959
the new member of the group, either *SINGLE* or *WAIT_STANDBY*. When
6060
the assigned state is *SINGLE*, then ``pg_autoctl create postgres``
61-
proceedes to initialize a new PostgreSQL instance.
61+
proceeds to initialize a new PostgreSQL instance.
6262

6363
2. Initialize an already existing primary server
6464

docs/ref/pg_autoctl_get_formation_number_sync_standbys.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Options
3535

3636
--json
3737

38-
Output JSON formated data.
38+
Output JSON formatted data.
3939

4040
--formation
4141

0 commit comments

Comments
 (0)