From 43351d2b54f7d8451a0e1ada7a72514c1ae1e396 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 7 Mar 2022 00:13:56 +0100 Subject: Spelling: Fix various spelling mistakes (thanks timeless) Words, sometimes I wonder how they even work Maybe I missed something. --- util/datamanager.lua | 4 ++-- util/openmetrics.lua | 2 +- util/pluginloader.lua | 2 +- util/prosodyctl/cert.lua | 2 +- util/sasl.lua | 4 ++-- util/statsd.lua | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) (limited to 'util') diff --git a/util/datamanager.lua b/util/datamanager.lua index b8829de1..352e509f 100644 --- a/util/datamanager.lua +++ b/util/datamanager.lua @@ -222,7 +222,7 @@ local function store(username, host, datastore, data) os_remove(getpath(username, host, datastore)); end -- we write data even when we are deleting because lua doesn't have a - -- platform independent way of checking for non-exisitng files + -- platform independent way of checking for non-existing files until ok; return true; end @@ -290,7 +290,7 @@ local function list_store(username, host, datastore, data) os_remove(getpath(username, host, datastore, "list")); end -- we write data even when we are deleting because lua doesn't have a - -- platform independent way of checking for non-exisitng files + -- platform independent way of checking for non-existing files return true; end diff --git a/util/openmetrics.lua b/util/openmetrics.lua index 2fb8b967..cb7791ec 100644 --- a/util/openmetrics.lua +++ b/util/openmetrics.lua @@ -10,7 +10,7 @@ The following metric types are supported: - Histogram - Summary -It is used by util.statsd and util.statistics to provite the OpenMetrics API. +It is used by util.statsd and util.statistics to provide the OpenMetrics API. To understand what this module is about, it is useful to familiarize oneself with the terms MetricFamily, Metric, LabelSet, Label and MetricPoint as diff --git a/util/pluginloader.lua b/util/pluginloader.lua index 77f893b4..f2ccb4cb 100644 --- a/util/pluginloader.lua +++ b/util/pluginloader.lua @@ -12,7 +12,7 @@ local lua_version = _VERSION:match(" (.+)$"); local plugin_dir = {}; for path in (CFG_PLUGINDIR or "./plugins/"):gsub("[/\\]", dir_sep):gmatch("[^"..path_sep.."]+") do path = path..dir_sep; -- add path separator to path end - path = path:gsub(dir_sep..dir_sep.."+", dir_sep); -- coalesce multiple separaters + path = path:gsub(dir_sep..dir_sep.."+", dir_sep); -- coalesce multiple separators plugin_dir[#plugin_dir + 1] = path; end diff --git a/util/prosodyctl/cert.lua b/util/prosodyctl/cert.lua index 59b6f982..02c81585 100644 --- a/util/prosodyctl/cert.lua +++ b/util/prosodyctl/cert.lua @@ -237,7 +237,7 @@ function cert_commands.import(arg) for _, host in ipairs(hostnames) do local paths = cm.find_cert_in_index(files_by_name, host); if paths and imported[paths.certificate] then - -- One certificate, many mames! + -- One certificate, many names! table.insert(imported, host); elseif paths then local c = copy(paths.certificate, cert_basedir .. "/" .. host .. ".crt", nil, owner, group); diff --git a/util/sasl.lua b/util/sasl.lua index 46e75e48..528743d1 100644 --- a/util/sasl.lua +++ b/util/sasl.lua @@ -47,7 +47,7 @@ local registered_mechanisms = {}; local backend_mechanism = {}; local mechanism_channelbindings = {}; --- register a new SASL mechanims +-- register a new SASL mechanisms local function registerMechanism(name, backends, f, cb_backends) assert(type(name) == "string", "Parameter name MUST be a string."); assert(type(backends) == "string" or type(backends) == "table", "Parameter backends MUST be either a string or a table."); @@ -97,7 +97,7 @@ function method:clean_clone() return new(self.realm, self.profile) end --- get a list of possible SASL mechanims to use +-- get a list of possible SASL mechanisms to use function method:mechanisms() local current_mechs = {}; for mech, _ in pairs(self.mechs) do diff --git a/util/statsd.lua b/util/statsd.lua index 6ae85c31..581f945a 100644 --- a/util/statsd.lua +++ b/util/statsd.lua @@ -85,7 +85,7 @@ local histogram_metric_mt = {} histogram_metric_mt.__index = histogram_metric_mt local function new_histogram_metric(buckets, full_name, impl) - -- NOTE: even though the more or less proprietrary dogstatsd has its own + -- NOTE: even though the more or less proprietary dogstatsd has Its own -- histogram implementation, we push the individual buckets in this statsd -- backend for both consistency and compatibility across statsd -- implementations. -- cgit v1.2.3