Fix duplicated words and typos in comments and docs#2667
Open
durvesh1992 wants to merge 1 commit into
Open
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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), sinceTo/Fromare type names,folly::tois a function, andin-situis a hyphenated term.Changes
Duplicated words
folly/ConstructorCallbackList.hthat that callback codethat callback codefolly/Synchronized.his is nothrow-copy-constructibleis nothrow-copy-constructiblefolly/Synchronized.hpassed to to *lock()passed to *lock()folly/Utility.hused to to force a moveused to force a movefolly/Function.hWhy is is safeWhy is it safefolly/result/rich_exception_ptr.hbut the the rightbut the rightfolly/memory/Allocator.hwhich is is no longerwhich is no longerfolly/test/StringToFloatBenchmark.cppfor the the benchmarkfor the benchmarkfolly/hash/detail/ChecksumDetail.cppit is is reducedit is reducedfolly/io/IOBuf.hthe the IOBuf's chainthe IOBuf's chainfolly/io/async/NotificationQueue.havailable on on olderavailable on olderfolly/io/async/EventBase.hwith with no riskwith no riskfolly/io/async/Request.his the the sameis the samefolly/io/async/IoUring.hmember from from io_uring_cqemember from io_uring_cqefolly/io/async/AsyncSSLSocket.hmimics what whatmimics whatfolly/lang/bind/Bind.hon on all the bindingson all the bindingsfolly/lang/bind/AsArgument.hresponsible for for theresponsible for thefolly/testing/TestUtil.his is guaranteedis guaranteedfolly/container/FBVector.hNote that that indeterminateNote that indeterminatefolly/detail/ThreadLocalDetail.hinto the the elements arrayinto the elements arrayfolly/coro/Coroutine.hwith with a vtablewith a vtablefolly/coro/Collect.hor the the exceptionor the exceptionfolly/logging/xlog.hthen we we can detectthen we can detectfolly/logging/LogLevel.hor to to main DBG levelor to main DBG levelfolly/functional/Invoke.hof the the specified typesof the specified typesfolly/channels/MultiplexChannel-inl.hreceiver to to one or morereceiver to one or morefolly/ThreadCachedInt.hit's fine do do a relaxed loadit's fine to do a relaxed loadfolly/synchronization/DistributedMutex-inl.hthen were were not giventhen we were not givenfolly/docs/Hazptr.mdversion of of shared-ptrversion of shared-ptrMisspellings
folly/test/SocketAddressTest.cppComparisionComparisonfolly/fibers/async/Async.hguarenteeguaranteefolly/concurrency/container/RelaxedConcurrentPriorityQueue.hguarenteeguaranteefolly/concurrency/container/RelaxedConcurrentPriorityQueue.halwayalwaysfolly/io/async/AsyncTransport.hsuccessfullsuccessfulfolly/io/async/SSLContext.hfucntionfunctionfolly/io/async/test/EventHandlerTest.cppSpecificalySpecificallyfolly/docs/Switch.mdexplicitely(3x)explicitlyfolly/synchronization/Rcu.hoccuringoccurringfolly/observer/test/ObserverTest.cpptha hazptr-objthe hazptr-objfolly/detail/test/ThreadLocalDetailTest.cppelemntselementsVerification
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.