From 2efb8cda3905f4a9e33bd0d898c1bae349d50842 Mon Sep 17 00:00:00 2001
From: Sergey Bronnikov <sergeyb@tarantool.org>
Date: Thu, 30 Nov 2023 19:49:54 +0300
Subject: [PATCH] datetime: fix typos

The patch fixes a number of typos in datetime source code.

NO_CHANGELOG=codehealth
NO_DOC=codehealth
NO_TEST=codehealth

(cherry picked from commit c9c5b9f139ccbf5372d1568827fbb50bec7239bb)
---
 src/lib/core/datetime.h | 6 +++---
 src/lua/datetime.lua    | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/lib/core/datetime.h b/src/lib/core/datetime.h
index fcf1c7aea2..af831e0a25 100644
--- a/src/lib/core/datetime.h
+++ b/src/lib/core/datetime.h
@@ -94,7 +94,7 @@ struct datetime {
 };
 
 /**
- * To be able to perform arithmetics on time intervals and receive
+ * To be able to perform arithmetic on time intervals and receive
  * deterministic results, we keep each component (i.e. years, months, weeks,
  * days, etc) separately from seconds.
  * We add/subtract interval components separately, and rebase upon resultant
@@ -216,9 +216,9 @@ datetime_parse_full(struct datetime *date, const char *str, size_t len,
  * @param str input text in relaxed ISO-8601 format (0-terminated)
  * @param len length of str buffer
  * @param[out] tzoffset return timezone offset if recognized
- * @param[out] tzindex return timzeon index if recognized
+ * @param[out] tzindex return timezone index if recognized
  * @retval Upon successful completion returns length of accepted
- *         substring. Returns 0 if text is not recognizable as timzeone.
+ *         substring. Returns 0 if text is not recognizable as timezone.
  *         Returns negative value is there is unaccepted timezone.
  * @sa datetime_parse_full()
  */
diff --git a/src/lua/datetime.lua b/src/lua/datetime.lua
index a3fd61ea5d..c26e1d3aa8 100644
--- a/src/lua/datetime.lua
+++ b/src/lua/datetime.lua
@@ -7,7 +7,7 @@ local tz = require('timezones')
     values, where `dt` is a number of dates since Rata Die date (0001-01-01).
 
     `c-dt` uses 32-bit integer number to store `dt` values, so range of
-    suported dates is limited to dates from -5879610-06-22 (INT32_MIN) to
+    supported dates is limited to dates from -5879610-06-22 (INT32_MIN) to
     +5879611-07-11 (INT32_MAX).
 
     For better compactness of our typical data in MessagePack stream we shift
@@ -253,7 +253,7 @@ local function check_str_or_nil(s, message)
 end
 
 -- range may be of a form of pair {from, to} or
--- tuple {fom, to, -1 in extra}
+-- tuple {from, to, -1 in extra}
 -- -1 is a special value (so far) used for days only
 local function check_range(v, from, to, txt, extra)
     if type(v) ~= 'number' then
-- 
GitLab