From 60d30e2677a02db4bc62a30af634e06b26f20565 Mon Sep 17 00:00:00 2001 From: gearonixx Date: Fri, 29 May 2026 14:55:36 +0300 Subject: Cosmetics: fix typos in docstrings and comments Fix typos in docstrings --- Pull Request resolved: https://github.com/ytsaurus/ytsaurus/pull/1733 Co-authored-by: ilyaibraev commit_hash:33a12aeaeeaec2f93ef9f465a3d5cdff95b62757 --- library/cpp/yt/memory/intrusive_ptr.h | 2 +- library/cpp/yt/memory/ref.h | 2 +- library/cpp/yt/threading/atomic_object.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'library/cpp') diff --git a/library/cpp/yt/memory/intrusive_ptr.h b/library/cpp/yt/memory/intrusive_ptr.h index 96550ef8a84..613b2f58c49 100644 --- a/library/cpp/yt/memory/intrusive_ptr.h +++ b/library/cpp/yt/memory/intrusive_ptr.h @@ -32,7 +32,7 @@ public: * Note that this constructor could be racy due to unsynchronized operations * on the object and on the counter. * - * Note that it notoriously hard to make this constructor explicit + * Note that it is notoriously hard to make this constructor explicit * given the current amount of code written. */ constexpr TIntrusivePtr(T* obj, bool addReference = true) noexcept diff --git a/library/cpp/yt/memory/ref.h b/library/cpp/yt/memory/ref.h index ded8f40eb55..028afffd354 100644 --- a/library/cpp/yt/memory/ref.h +++ b/library/cpp/yt/memory/ref.h @@ -370,7 +370,7 @@ public: * The user must provide the total (resulting) part count in #size. * * Additionally, the user may request a certain memory pool of size #poolCapacity - * to be created. Parts occupiying space in the above pool are created with #AllocateAndAdd + * to be created. Parts occupying space in the above pool are created with #AllocateAndAdd * calls. * * The pool (if any) and the array are created within a single memory allocation tagged with diff --git a/library/cpp/yt/threading/atomic_object.h b/library/cpp/yt/threading/atomic_object.h index 452f0f29195..bdf84ae6abf 100644 --- a/library/cpp/yt/threading/atomic_object.h +++ b/library/cpp/yt/threading/atomic_object.h @@ -35,7 +35,7 @@ public: template F> std::invoke_result_t Transform(F&& func); - //! Atomicaly reads the value with function #func. + //! Atomically reads the value with function #func. template F> std::invoke_result_t Read(F&& func) const; -- cgit v1.3