Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 34a5696

Browse files
authored
Fix typos and spelling errors. (#8639)
1 parent c850dd9 commit 34a5696

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+63
-60
lines changed

changelog.d/8639.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix typos and spelling errors in the code.

docs/sample_config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1886,7 +1886,7 @@ sso:
18861886
# and issued at ("iat") claims are validated if present.
18871887
#
18881888
# Note that this is a non-standard login type and client support is
1889-
# expected to be non-existant.
1889+
# expected to be non-existent.
18901890
#
18911891
# See https://github.com/matrix-org/synapse/blob/master/docs/jwt.md.
18921892
#
@@ -2402,7 +2402,7 @@ spam_checker:
24022402
#
24032403
# Options for the rules include:
24042404
#
2405-
# user_id: Matches agaisnt the creator of the alias
2405+
# user_id: Matches against the creator of the alias
24062406
# room_id: Matches against the room ID being published
24072407
# alias: Matches against any current local or canonical aliases
24082408
# associated with the room
@@ -2448,7 +2448,7 @@ opentracing:
24482448
# This is a list of regexes which are matched against the server_name of the
24492449
# homeserver.
24502450
#
2451-
# By defult, it is empty, so no servers are matched.
2451+
# By default, it is empty, so no servers are matched.
24522452
#
24532453
#homeserver_whitelist:
24542454
# - ".*"

docs/sample_log_config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ root:
5959
# then write them to a file.
6060
#
6161
# Replace "buffer" with "console" to log to stderr instead. (Note that you'll
62-
# also need to update the configuation for the `twisted` logger above, in
62+
# also need to update the configuration for the `twisted` logger above, in
6363
# this case.)
6464
#
6565
handlers: [buffer]

synapse/config/jwt_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def generate_config_section(self, **kwargs):
6363
# and issued at ("iat") claims are validated if present.
6464
#
6565
# Note that this is a non-standard login type and client support is
66-
# expected to be non-existant.
66+
# expected to be non-existent.
6767
#
6868
# See https://github.com/matrix-org/synapse/blob/master/docs/jwt.md.
6969
#

synapse/config/logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
# then write them to a file.
106106
#
107107
# Replace "buffer" with "console" to log to stderr instead. (Note that you'll
108-
# also need to update the configuation for the `twisted` logger above, in
108+
# also need to update the configuration for the `twisted` logger above, in
109109
# this case.)
110110
#
111111
handlers: [buffer]

synapse/config/registration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def read_config(self, config, **kwargs):
143143
RoomCreationPreset.TRUSTED_PRIVATE_CHAT,
144144
}
145145

146-
# Pull the creater/inviter from the configuration, this gets used to
146+
# Pull the creator/inviter from the configuration, this gets used to
147147
# send invites for invite-only rooms.
148148
mxid_localpart = config.get("auto_join_mxid_localpart")
149149
self.auto_join_user_id = None

synapse/config/room_directory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def generate_config_section(self, config_dir_path, server_name, **kwargs):
9999
#
100100
# Options for the rules include:
101101
#
102-
# user_id: Matches agaisnt the creator of the alias
102+
# user_id: Matches against the creator of the alias
103103
# room_id: Matches against the room ID being published
104104
# alias: Matches against any current local or canonical aliases
105105
# associated with the room

synapse/config/tracer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def generate_config_section(cls, **kwargs):
6767
# This is a list of regexes which are matched against the server_name of the
6868
# homeserver.
6969
#
70-
# By defult, it is empty, so no servers are matched.
70+
# By default, it is empty, so no servers are matched.
7171
#
7272
#homeserver_whitelist:
7373
# - ".*"

synapse/crypto/context_factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def get_options(self, host: bytes):
149149
return SSLClientConnectionCreator(host, ssl_context, should_verify)
150150

151151
def creatorForNetloc(self, hostname, port):
152-
"""Implements the IPolicyForHTTPS interace so that this can be passed
152+
"""Implements the IPolicyForHTTPS interface so that this can be passed
153153
directly to agents.
154154
"""
155155
return self.get_options(hostname)

synapse/events/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def __get__(self, instance, owner=None):
5959
#
6060
# To exclude the KeyError from the traceback, we explicitly
6161
# 'raise from e1.__context__' (which is better than 'raise from None',
62-
# becuase that would omit any *earlier* exceptions).
62+
# because that would omit any *earlier* exceptions).
6363
#
6464
raise AttributeError(
6565
"'%s' has no '%s' property" % (type(instance), self.key)

0 commit comments

Comments
 (0)