diff options
author | r-andrey <r-andrey@yandex-team.com> | 2023-01-28 14:13:03 +0300 |
---|---|---|
committer | r-andrey <r-andrey@yandex-team.com> | 2023-01-28 14:13:03 +0300 |
commit | e9ca29e3dfc6f7601dd4037785c75d8d3b6620f3 (patch) | |
tree | 7723565b035d9de8d254d6262901afd0af170738 /util/generic/yexception.h | |
parent | 671c7fb29fbbe1de4e1f19152fe76341892bbce5 (diff) | |
download | ydb-e9ca29e3dfc6f7601dd4037785c75d8d3b6620f3.tar.gz |
Fix grammar in "yexception.h"
Diffstat (limited to 'util/generic/yexception.h')
-rw-r--r-- | util/generic/yexception.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/util/generic/yexception.h b/util/generic/yexception.h index 660c772061b..f4a1bd62056 100644 --- a/util/generic/yexception.h +++ b/util/generic/yexception.h @@ -142,7 +142,7 @@ struct TBadCastException: public virtual TBadArgumentException { namespace NPrivate { /// Encapsulates data for one of the most common case in which - /// exception message contists of single constant string + /// exception message consists of single constant string struct TSimpleExceptionMessage { TSourceLocation Location; TStringBuf Message; @@ -157,11 +157,11 @@ void fputs(const std::exception& e, FILE* f = stderr); TString CurrentExceptionMessage(); /** - * Formats current exception for logging purposes. Includes formatted backtrace if it is stored + * Formats current exception for logging purposes. Includes formatted backtrace if it is stored * alongside the exception. * The output format is a subject to change, do not depend or canonize it. * The speed of this method is not guaranteed either. Do not call it in hot paths of your code. - * + * * The lack of current exception prior to the invocation indicates logical bug in the client code. * Y_VERIFY asserts the existence of exception, otherwise panic and abort. */ @@ -169,7 +169,7 @@ TString FormatCurrentException(); void FormatCurrentExceptionTo(IOutputStream& out); /* - * A neat method that detects wrether stack unwinding is in progress. + * A neat method that detects whether stack unwinding is in progress. * As its std counterpart (that is std::uncaught_exception()) * was removed from the standard, this method uses std::uncaught_exceptions() internally. * @@ -215,7 +215,7 @@ TString FormatExc(const std::exception& exception); /** * @def Y_ENSURE * - * This macro is inteded to use as a shortcut for `if () { throw }`. + * This macro is intended to be used as a shortcut for `if () { throw }`. * * @code * void DoSomethingLovely(const int x, const int y) { @@ -230,7 +230,7 @@ TString FormatExc(const std::exception& exception); /** * @def Y_ENSURE_BT * - * This macro is inteded to use as a shortcut for `if () { throw TWithBackTrace<yexception>() << "message"; }`. + * This macro is intended to be used as a shortcut for `if () { throw TWithBackTrace<yexception>() << "message"; }`. * * @code * void DoSomethingLovely(const int x, const int y) { |