Commit 112b4bdf authored by Yuri Chornoivan's avatar Yuri Chornoivan

Fix minor typos

parent ce1b5e8d
Pipeline #14999 passed with stage
in 5 minutes and 3 seconds
......@@ -140,7 +140,7 @@ namespace accounts
public:
explicit Dispatcher(QThread *thread, QObject *parent = nullptr);
bool empty(void) const;
void queueAndProceed(AccountJob *job, const std::function<void(void)> &setup_calbacks);
void queueAndProceed(AccountJob *job, const std::function<void(void)> &setup_callbacks);
Q_SIGNALS:
void dispatch(void);
private Q_SLOTS:
......
......@@ -21,7 +21,7 @@ namespace model
qint64 diff = epoch.msecsTo(now);
/*
* Compensate for the fact that % operator is not the same as mathemtical mod in case diff is negative.
* Compensate for the fact that % operator is not the same as mathematical mod in case diff is negative.
* diff is negative when the given epoch is in the 'future' compared to the current clock value.
*/
return diff < 0 ? - (diff % step) : step - (diff % step);
......
......@@ -63,7 +63,7 @@ namespace oath
quint32 Encoder::reduceMod10(quint32 value, uint tokenLength)
{
/*
* Skip modulo 10 reducation for tokens of 10 or more characters:
* Skip modulo 10 reduction for tokens of 10 or more characters:
* the value is already guaranteed to be in its modulo 10 reduced form, because 2^32 is less than 10^10.
* This check also takes care of possible integer overflow, for the same reason.
*/
......@@ -88,7 +88,7 @@ namespace oath
bool Algorithm::validate(const Encoder &encoder)
{
// HOTP spec mandages a mimimum token length of 6 digits
// HOTP spec manages a minimum token length of 6 digits
return encoder.tokenLength() >= 6;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment