Skip to content

Fix duplicated words and typos in comments and docs#2667

Open
durvesh1992 wants to merge 1 commit into
facebook:mainfrom
durvesh1992:fix/comment-doc-typos
Open

Fix duplicated words and typos in comments and docs#2667
durvesh1992 wants to merge 1 commit into
facebook:mainfrom
durvesh1992:fix/comment-doc-typos

Conversation

@durvesh1992

Copy link
Copy Markdown

Summary

Fixes high-confidence text errors found by sweeping comments and Markdown docs across the repo: duplicated words and common misspellings. Comments and documentation only — no code or behavior changes.

Legitimate C++ tokens were deliberately left untouched (e.g. convertible to To, cast from From to To, folly::to to check, in in-situ-only), since To/From are type names, folly::to is a function, and in-situ is a hyphenated term.

Changes

Duplicated words

File Before After
folly/ConstructorCallbackList.h that that callback code that callback code
folly/Synchronized.h is is nothrow-copy-constructible is nothrow-copy-constructible
folly/Synchronized.h passed to to *lock() passed to *lock()
folly/Utility.h used to to force a move used to force a move
folly/Function.h Why is is safe Why is it safe
folly/result/rich_exception_ptr.h but the the right but the right
folly/memory/Allocator.h which is is no longer which is no longer
folly/test/StringToFloatBenchmark.cpp for the the benchmark for the benchmark
folly/hash/detail/ChecksumDetail.cpp it is is reduced it is reduced
folly/io/IOBuf.h the the IOBuf's chain the IOBuf's chain
folly/io/async/NotificationQueue.h available on on older available on older
folly/io/async/EventBase.h with with no risk with no risk
folly/io/async/Request.h is the the same is the same
folly/io/async/IoUring.h member from from io_uring_cqe member from io_uring_cqe
folly/io/async/AsyncSSLSocket.h mimics what what mimics what
folly/lang/bind/Bind.h on on all the bindings on all the bindings
folly/lang/bind/AsArgument.h responsible for for the responsible for the
folly/testing/TestUtil.h is is guaranteed is guaranteed
folly/container/FBVector.h Note that that indeterminate Note that indeterminate
folly/detail/ThreadLocalDetail.h into the the elements array into the elements array
folly/coro/Coroutine.h with with a vtable with a vtable
folly/coro/Collect.h or the the exception or the exception
folly/logging/xlog.h then we we can detect then we can detect
folly/logging/LogLevel.h or to to main DBG level or to main DBG level
folly/functional/Invoke.h of the the specified types of the specified types
folly/channels/MultiplexChannel-inl.h receiver to to one or more receiver to one or more
folly/ThreadCachedInt.h it's fine do do a relaxed load it's fine to do a relaxed load
folly/synchronization/DistributedMutex-inl.h then were were not given then we were not given
folly/docs/Hazptr.md version of of shared-ptr version of shared-ptr

Misspellings

File Before After
folly/test/SocketAddressTest.cpp Comparision Comparison
folly/fibers/async/Async.h guarentee guarantee
folly/concurrency/container/RelaxedConcurrentPriorityQueue.h guarentee guarantee
folly/concurrency/container/RelaxedConcurrentPriorityQueue.h alway always
folly/io/async/AsyncTransport.h successfull successful
folly/io/async/SSLContext.h fucntion function
folly/io/async/test/EventHandlerTest.cpp Specificaly Specifically
folly/docs/Switch.md explicitely (3x) explicitly
folly/synchronization/Rcu.h occuring occurring
folly/observer/test/ObserverTest.cpp tha hazptr-obj the hazptr-obj
folly/detail/test/ThreadLocalDetailTest.cpp elemnts elements

Verification

Inspection-only (C++ not built here). Each change was checked in context to confirm it is a genuine comment/doc typo and not a code identifier or technical term. Re-grepped after editing to confirm no remaining instances and that no code logic was modified.

Sweeps comments and Markdown docs for high-confidence text errors:
duplicated words (e.g. "the the", "to to", "is is", "with with") and
common misspellings (guarentee, explicitely, fucntion, Comparision,
Specificaly, occuring, etc.). Comment and documentation only; no code
or behavior changes. Legitimate C++ tokens such as "convertible to To"
and "in in-situ" were deliberately left untouched.
@meta-cla meta-cla Bot added the CLA Signed label Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant