From 754a2482bdd33aa5176f81de48659e32ac1d8465 Mon Sep 17 00:00:00 2001 From: mdPlusPlus Date: Tue, 11 Jul 2023 02:49:02 +0200 Subject: [PATCH] Fix typos --- CONTRIBUTING.md | 2 +- README.md | 2 +- output/main.js | 2 +- php/servers/servers-rooms.php | 6 +++--- php/utils/getopt.php | 2 +- php/utils/logging.php | 6 +++--- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 77eeeee..a690870 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -48,7 +48,7 @@ Recommended: **Indentation**: Tabs (4-wide) -**Filename seperator**: Hyphen (`-`) +**Filename separator**: Hyphen (`-`) ### PHP diff --git a/README.md b/README.md index 74bd124..ee466a1 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for information about running the project We require that content posted in Communities adheres to the Content Policy laid out in the [Session Terms of Service](https://getsession.org/terms-of-service). Additionally, we may consider Communities unsuitable for display if their content is in breach of copyright and/or encourages or instructs drug use. If Communities explicitly accept such content or fail to moderate such content, we may display these Communities only to users who have disabled JavaScript in their browser, or to none at all. For safety reasons, we may also hide Communities intended for testing. We appreciate contact with and the continued vigilance of server operators to prevent any issues from arising that would lead to us de-listing your Community. -We occassionally accept requests from server operators to de-list whole Community servers; this only applies in cases where we've previously listed them manually (read above about sources). If you feel our listing would be greatly detrimental to the users of your Communities, such as in cases where your Communities reveal sensitive information about your users, you may [contact us](#contact-us) to make such a request. Please note that Session Communities are not designed with private communication in mind and we reserve the right not to de-list your Communities in case they have been listed on one of our sources and/or in case you request to de-list only a subset of your Communities. +We occasionally accept requests from server operators to de-list whole Community servers; this only applies in cases where we've previously listed them manually (read above about sources). If you feel our listing would be greatly detrimental to the users of your Communities, such as in cases where your Communities reveal sensitive information about your users, you may [contact us](#contact-us) to make such a request. Please note that Session Communities are not designed with private communication in mind and we reserve the right not to de-list your Communities in case they have been listed on one of our sources and/or in case you request to de-list only a subset of your Communities. ## Contact us diff --git a/output/main.js b/output/main.js index ac477e0..0a8adab 100644 --- a/output/main.js +++ b/output/main.js @@ -353,7 +353,7 @@ function createJoinLinkButtons() { } /** - * Hides rows of communities deemed to be superflous or unsuitable. + * Hides rows of communities deemed to be superfluous or unsuitable. */ function hideBadCommunities() { let numberOfHiddenCommunities = 0; diff --git a/php/servers/servers-rooms.php b/php/servers/servers-rooms.php index 04d93ad..541547f 100644 --- a/php/servers/servers-rooms.php +++ b/php/servers/servers-rooms.php @@ -505,7 +505,7 @@ * @param CommunityServer $a First server to compare URLs. * @param CommunityServer $b Second server to compare URLs. * @return int A number less than, equal to, or greater than zero - * when the servers are in correct order, interchangable, or in reverse order, + * when the servers are in correct order, interchangeable, or in reverse order, * respectively. */ static function compare_by_url($a, $b): int { @@ -528,7 +528,7 @@ * @param CommunityServer $a First server to compare public keys. * @param CommunityServer $b Second server to compare public keys. * @return int A number less than, equal to, or greater than zero - * when the servers are in correct order, interchangable, or in reverse order, + * when the servers are in correct order, interchangeable, or in reverse order, * respectively. */ static function compare_by_pubkey($a, $b): int { @@ -547,7 +547,7 @@ * Absorbs extra info from another instance of the same server. * @param CommunityServer $server * - * @return True if successful, false in case of mistmatch. + * @return True if successful, false in case of mismatch. */ private function merge_from($server): bool { // Merge room hint information. diff --git a/php/utils/getopt.php b/php/utils/getopt.php index fe3920c..3c40a11 100644 --- a/php/utils/getopt.php +++ b/php/utils/getopt.php @@ -26,6 +26,6 @@ // max time for each connection (incl. transfer) $CURL_TIMEOUT_MS = $FAST_FETCH_MODE ? 3000 : 9000; - // delay between retries in miliseconds + // delay between retries in milliseconds $CURL_RETRY_SLEEP = 2000; ?> diff --git a/php/utils/logging.php b/php/utils/logging.php index 7a5798b..b166195 100644 --- a/php/utils/logging.php +++ b/php/utils/logging.php @@ -76,7 +76,7 @@ } /** - * Returns a pair of optíons trigerring the given verbosity. + * Returns a pair of optíons triggering the given verbosity. * @param int $verbosity Logging verbosity to set using flag. * @return string[] Pair of short and long command-line verbosity flags. */ @@ -102,8 +102,8 @@ } /** - * Format current process runtime to milisecond precision. - * @return string Runtime ninutes, seconds, and miliseconds as string. + * Format current process runtime to millisecond precision. + * @return string Runtime ninutes, seconds, and milliseconds as string. */ function runtime_str(): string { list($s, $ns) = hrtime_interval();