aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorponasenko-rs <ponasenko-rs@yandex-team.com>2023-11-20 14:30:36 +0300
committerponasenko-rs <ponasenko-rs@yandex-team.com>2023-11-20 16:55:42 +0300
commitddbdb82c6309b027d872f26a39ca9516fb9f0aa3 (patch)
treea0279b2ad0443446b9c9380dceeab7bfbc93cdd1 /util
parent66cf64aaa069a37c619ad2e3c1fcacc60c12a031 (diff)
downloadydb-ddbdb82c6309b027d872f26a39ca9516fb9f0aa3.tar.gz
Fix typos in util/datetime/base.h.
Diffstat (limited to 'util')
-rw-r--r--util/datetime/base.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/datetime/base.h b/util/datetime/base.h
index 5e902b8f63..c43b9775d0 100644
--- a/util/datetime/base.h
+++ b/util/datetime/base.h
@@ -216,14 +216,14 @@ public:
/**
* TDuration is compatible with std::chrono::duration:
* it can be constructed and compared with std::chrono::duration.
- * But there is two significant and dangerous differencies between them:
+ * But there are two significant and dangerous differences between them:
* 1) TDuration is never negative and use saturation between 0 and maximum value.
* std::chrono::duration can be negative and can overflow.
* 2) TDuration uses integer number of microseconds.
* std::chrono::duration is flexible, can be integer of floating point,
* can have different precisions.
* So when casted from std::chrono::duration to TDuration value is clamped and rounded.
- * In arithmethic operations std::chrono::duration argument is only rounded,
+ * In arithmetic operations std::chrono::duration argument is only rounded,
* result is TDuration and it clamped and rounded.
* In comparisons std::chrono::duration argument is rounded.
*/