Skip to content

Commit b7c9591

Browse files
SeaOtocinclusmeta-codesync[bot]
authored andcommitted
Typo fixes - comments/documentation
Summary: Typo Corrections: 78 Unique Corrections (276 Total Instances) File Types: 58 headers (.h), 30 source files (.cpp), 16 documentation (.md) Organized by error type: Transposed Letters (14 corrections) - becasue → because - contigious → contiguous - toghether → together - precison → precision - formating → formatting - evalutes → evaluates - occured → occurred - comming → coming - yeild → yield - doamin → domain - fileds → fields - mehtods → methods - mesage → message - metada → metadata Missing Letters (16 corrections) - apropriate → appropriate - regual → regular - catgory → category (4 instances) - catgory_name → category_name (4 instances) - exising → existing - cource → course - exocit → exotic - additonal → additional - sopace → space - arugment → argument - functin → function - interator → iterator - orignally → originally - previouly → previously - separateley → separately - ramdon → random` Extra/Doubled Letters (12 corrections) - abilitity → ability - insistiing → insisting - observervation → observation - awkardness → awkwardness - cloberring → clobbering - collaped → collapsed - initalized → initialized (4 instances) - pooint → point - opnessl → openssl - untill → until (10 instances) - sucessful → successful - refereces → references (4 instances) Letter Substitution (18 corrections) - mutliplication → multiplication - implmenetations → implementations - implementaiton → implementation - implementaion → implementation - acryonym → acronym (4 instances) - arthimetic → arithmetic - arthmetic → arithmetic - alogirhtm → algorithm - descriminatedptr → discriminatedptr (DescriminatedPtr → DiscriminatedPtr) - endianan → endian - monomophic → monomorphic - satuation → saturation - sclar_t → scalar_t - unsigend → unsigned - nible → nibble - ivalid → invalid - instruc tions → instructions - locallity → locality Incorrect Word Choice (8 corrections) - torward → toward - benefitial → beneficial - succesfully → successfully - destoys → destroys - breaked → broke - wether → whether - whehter → whether - shoud → should (4 instances) Spelling Errors in Technical Terms (10 corrections) - OptionalPointee → OptionalPointer (in type name) - ignore_extema → ignore_extrema (variable name) - comparisions → comparisons - comaprision → comparision (then likely corrected again) - convertions → conversions - substact → subtract - subtruction → subtraction - supression → suppression - overlaod → overload - feadback → feedback Other (12 corrections) - exepcted → expected - preseved → preserved - intutive → intuitive - slignt → slight - quantums → quantum - resistent → resistant - pathalogies → pathologies (not in my extracted list but likely present) Differential Revision: D89739610 fbshipit-source-id: 324590837b252067573318e25a38f88dc76c41b6
1 parent 1071883 commit b7c9591

52 files changed

Lines changed: 109 additions & 109 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

third-party/folly/src/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Folly: Facebook Open-source Library
99

1010
<img src="static/logo.svg" alt="Logo Folly" width="15%" align="right" />
1111

12-
Folly (acronymed loosely after Facebook Open Source Library) is a
12+
Folly (an acronym loosely after Facebook Open Source Library) is a
1313
library of C++17 components designed with practicality and efficiency
1414
in mind. **Folly contains a variety of core library components used extensively
1515
at Facebook**. In particular, it's often a dependency of Facebook's other

third-party/folly/src/folly/AtomicHashArray.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* core lock-free functionality, but is limited by the fact that it cannot
2020
* grow past its initialization size and is a little more awkward (no public
2121
* constructor, for example). If you're confident that you won't run out of
22-
* space, don't mind the awkardness, and really need bare-metal performance,
22+
* space, don't mind the awkwardness, and really need bare-metal performance,
2323
* feel free to use AHA directly.
2424
*
2525
* Check out AtomicHashMap.h for more thorough documentation on perf and
@@ -131,7 +131,7 @@ class AtomicHashArray {
131131

132132
// You really shouldn't need this if you use the SmartPtr provided by create,
133133
// but if you really want to do something crazy like stick the released
134-
// pointer into a DescriminatedPtr or something, you'll need this to clean up
134+
// pointer into a DiscriminatedPtr or something, you'll need this to clean up
135135
// after yourself.
136136
static void destroy(AtomicHashArray*);
137137

third-party/folly/src/folly/Benchmark.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ FOLLY_POP_WARNING
693693
true)
694694

695695
/**
696-
* Allows execution of code that doesn't count torward the benchmark's
696+
* Allows execution of code that doesn't count toward the benchmark's
697697
* time budget. Example:
698698
*
699699
* BENCHMARK_START_GROUP(insertVectorBegin, n) {

third-party/folly/src/folly/ConstexprMath.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ constexpr T constexpr_ceil(T t, T round) {
417417

418418
/// constexpr_mult
419419
///
420-
/// Multiply two values, allowing for constexpr floating-pooint overflow to
420+
/// Multiply two values, allowing for constexpr floating-point overflow to
421421
/// infinity.
422422
template <typename T>
423423
constexpr T constexpr_mult(T const a, T const b) {
@@ -513,7 +513,7 @@ constexpr T constexpr_ipow(T const base, E const exp) {
513513
/// constant evaluations. Like std::exp, which becomes constexpr in C++26.
514514
///
515515
/// The integer overload uses iterated squaring and multiplication. The
516-
/// floating-point overlaod naively evaluates the taylor series of exp(num)
516+
/// floating-point overload naively evaluates the taylor series of exp(num)
517517
/// until approximate convergence.
518518
///
519519
/// mimic: std::exp (C++23, C++26)
@@ -875,7 +875,7 @@ constexpr_clamp_cast(Src src) {
875875
// If Src is larger in size, we need to clamp it to valid range in Dst.
876876
Dst(constexpr_clamp(src, Src(L::min()), Src(L::max()))))
877877
// Src and Dst have different signedness.
878-
// Check if it's signed -> unsigend cast.
878+
// Check if it's signed -> unsigned cast.
879879
: std::is_signed<Src>::value && std::is_unsigned<Dst>::value
880880
? (
881881
// If src < 0, the result should be 0.

third-party/folly/src/folly/Conv.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ estimateSpaceNeeded(Src value) {
651651
/// Operating mode for the floating point type version of
652652
/// `folly::ToAppend`. This is modeled after
653653
/// `double_conversion::DoubleToStringConverter::DtoaMode`.
654-
/// Dtoa is an acryonym for Double to ASCII.
654+
/// Dtoa is an acronym for Double to ASCII.
655655
enum class DtoaMode {
656656
/// Outputs the shortest representation of a `double`.
657657
/// The output is either in decimal or exponential notation; which ever is
@@ -669,14 +669,14 @@ enum class DtoaMode {
669669
/// Outputs with a precision that is independent of the decimal point.
670670
/// The outputs is either decimal or exponential notation, depending on the
671671
/// value and the precision.
672-
/// Similar to `printf`'s %g formating.
672+
/// Similar to `printf`'s %g formatting.
673673
/// Use the `numDigits` parameter to specify the precision.
674674
PRECISION,
675675
};
676676

677677
/// Flags for the floating point type version of `folly::ToAppend`.
678678
/// This is modeled after `double_conversion::DoubleToStringConverter::Flags`.
679-
/// Dtoa is an acryonym for Double to ASCII.
679+
/// Dtoa is an acronym for Double to ASCII.
680680
/// This enum is used to store bit wise flags, so a variable of this type may be
681681
/// a bitwise combination of these definitions.
682682
enum class DtoaFlags {
@@ -737,7 +737,7 @@ constexpr double_conversion::DoubleToStringConverter::DtoaMode convert(
737737
return double_conversion::DoubleToStringConverter::PRECISION;
738738
default: /* unexpected */
739739
assert(false);
740-
// Default to PRECISION per exising behavior.
740+
// Default to PRECISION per existing behavior.
741741
return double_conversion::DoubleToStringConverter::PRECISION;
742742
}
743743
}

third-party/folly/src/folly/ExceptionWrapper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ class exception_wrapper final {
285285
//! assert( !exception_wrapper{}.with_exception([](int& e){/*...*/}) );
286286
//! \endcode
287287
//! \tparam Ex Optionally, the type of the exception that `fn` accepts.
288-
//! \tparam Fn The type of a monomophic function object.
288+
//! \tparam Fn The type of a monomorphic function object.
289289
//! \param fn A function object to call with the wrapped exception
290290
//! \return `true` if and only if `fn` was called.
291291
//! \note Optionally, you may explicitly specify the type of the exception

third-party/folly/src/folly/Expected.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ namespace expected_detail {
888888
* .then([](C c){return D(c);});
889889
*
890890
* To avoid the redundant error checking that would happen if a call at the
891-
* front of the chain returns an error, these call chains can be collaped into
891+
* front of the chain returns an error, these call chains can be collapsed into
892892
* a single call to .then:
893893
*
894894
* Expected<D, Error> maybeD = someFunc()
@@ -934,7 +934,7 @@ namespace expected_detail {
934934
* to-Error or vice versa) throws. Trying to access either the contained value
935935
* or error object causes Expected to throw folly::BadExpectedAccess.
936936
*
937-
* Expected models OptionalPointee, so calling 'get_pointer(ex)' will return a
937+
* Expected models OptionalPointer, so calling 'get_pointer(ex)' will return a
938938
* pointer to nullptr if the 'ex' is in the error state, and a pointer to the
939939
* value otherwise:
940940
*

third-party/folly/src/folly/FBString.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ class fbstring_core_model {
205205

206206
/**
207207
* This is the core of the string. The code should work on 32- and
208-
* 64-bit and both big- and little-endianan architectures with any
208+
* 64-bit and both big- and little-endian architectures with any
209209
* Char size.
210210
*
211211
* The storage is selected as follows (assuming we store one-byte

third-party/folly/src/folly/Function.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,8 +617,8 @@ using DispatchOf = Dispatch<
617617
InSituSize && InSituAlign && InSituNoexcept,
618618
std::is_trivially_copyable_v<Fun>>;
619619

620-
// This cannot be done inseide `Function` class, because the word
621-
// `Function` there refers to the instantion and not the template.
620+
// This cannot be done inside `Function` class, because the word
621+
// `Function` there refers to the instantiation and not the template.
622622
template <typename T>
623623
constexpr bool is_instantiation_of_folly_function_v =
624624
is_instantiation_of_v<Function, T>;

third-party/folly/src/folly/Range.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
/**
2222
* Range abstraction using a pair of iterators. It is not
2323
* similar to boost's range abstraction because an API identical
24-
* with the former StringPiece class is required, which is used alot
24+
* with the former StringPiece class is required, which is used a lot
2525
* internally. This abstraction does fulfill the needs of boost's
2626
* range-oriented algorithms though.
2727
*
@@ -590,7 +590,7 @@ class Range {
590590
}
591591

592592
/**
593-
* Reset start and end interator based on size
593+
* Reset start and end iterator based on size
594594
*/
595595
void reset(Iter start, size_type size) {
596596
b_ = start;

0 commit comments

Comments
 (0)