From 659e11f9f3aa194b6755735cc31207df15d95dc0 Mon Sep 17 00:00:00 2001 From: owentou Date: Thu, 24 Feb 2022 20:43:45 +0800 Subject: [PATCH] Fix spell error Signed-off-by: owentou --- api/include/opentelemetry/common/timestamp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/include/opentelemetry/common/timestamp.h b/api/include/opentelemetry/common/timestamp.h index c34045675a..da8765b9bc 100644 --- a/api/include/opentelemetry/common/timestamp.h +++ b/api/include/opentelemetry/common/timestamp.h @@ -178,14 +178,14 @@ class DurationUtil std::chrono::duration timeout, std::chrono::duration indefinite_value) noexcept { - // Do not call now() when this duration is max value, now() may have a expemsive cost. + // Do not call now() when this duration is max value, now() may have a expensive cost. if (timeout == std::chrono::duration::max()) { return indefinite_value; } // std::future::wait_for, std::this_thread::sleep_for, and std::condition_variable::wait_for - // mey use steady_clock or system_clock.We need make sure now() + timeout do not overflow. + // may use steady_clock or system_clock.We need make sure now() + timeout do not overflow. auto max_timeout = std::chrono::duration_cast>( std::chrono::steady_clock::time_point::max() - std::chrono::steady_clock::now()); if (timeout >= max_timeout)