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)