Skip to content

Commit 201c426

Browse files
Merge pull request abseil#1438 from Vertexwahn:fix-spelling
PiperOrigin-RevId: 528547013 Change-Id: I9b57ee062ef666d6a34696778ff16a46c5ccb17d
2 parents e9a7eea + 9c32e50 commit 201c426

21 files changed

+24
-24
lines changed

absl/debugging/failure_signal_handler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ struct FailureSignalHandlerOptions {
6262
// If true, try to run signal handlers on an alternate stack (if supported on
6363
// the given platform). An alternate stack is useful for program crashes due
6464
// to a stack overflow; by running on a alternate stack, the signal handler
65-
// may run even when normal stack space has been exausted. The downside of
65+
// may run even when normal stack space has been exhausted. The downside of
6666
// using an alternate stack is that extra memory for the alternate stack needs
6767
// to be pre-allocated.
6868
bool use_alternate_stack = true;

absl/debugging/internal/demangle_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ static const char *DemangleIt(const char * const mangled) {
3838
}
3939
}
4040

41-
// Test corner cases of bounary conditions.
41+
// Test corner cases of boundary conditions.
4242
TEST(Demangle, CornerCases) {
4343
char tmp[10];
4444
EXPECT_TRUE(Demangle("_Z6foobarv", tmp, sizeof(tmp)));

absl/debugging/internal/stacktrace_aarch64-inl.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ static int UnwindImpl(void** result, int* sizes, int max_depth, int skip_count,
144144
// The frame pointer points to low address of a frame. The first 64-bit
145145
// word of a frame points to the next frame up the call chain, which normally
146146
// is just after the high address of the current frame. The second word of
147-
// a frame contains return adress of to the caller. To find a pc value
147+
// a frame contains return address of to the caller. To find a pc value
148148
// associated with the current frame, we need to go down a level in the call
149149
// chain. So we remember return the address of the last frame seen. This
150150
// does not work for the first stack frame, which belongs to UnwindImp() but

absl/debugging/internal/stacktrace_powerpc-inl.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ static inline void *StacktracePowerPCGetLR(void **sp) {
5757
// This check is in case the compiler doesn't define _CALL_SYSV.
5858
return *(sp+1);
5959
#else
60-
#error Need to specify the PPC ABI for your archiecture.
60+
#error Need to specify the PPC ABI for your architecture.
6161
#endif
6262
}
6363

absl/flags/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ absl_cc_library(
297297
)
298298

299299
############################################################################
300-
# Unit tests in alpahabetical order.
300+
# Unit tests in alphabetical order.
301301

302302
absl_cc_test(
303303
NAME

absl/flags/internal/flag.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ void FlagImpl::AssertValidType(FlagFastTypeId rhs_type_id,
197197
FlagFastTypeId lhs_type_id = flags_internal::FastTypeId(op_);
198198

199199
// `rhs_type_id` is the fast type id corresponding to the declaration
200-
// visibile at the call site. `lhs_type_id` is the fast type id
200+
// visible at the call site. `lhs_type_id` is the fast type id
201201
// corresponding to the type specified in flag definition. They must match
202202
// for this operation to be well-defined.
203203
if (ABSL_PREDICT_TRUE(lhs_type_id == rhs_type_id)) return;

absl/flags/parse.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ bool HandleGeneratorFlags(std::vector<ArgsList>& input_args,
417417
// programmatically before invoking ParseCommandLine. Note that we do not
418418
// actually process arguments specified in the flagfile, but instead
419419
// create a secondary arguments list to be processed along with the rest
420-
// of the comamnd line arguments. Since we always the process most recently
420+
// of the command line arguments. Since we always the process most recently
421421
// created list of arguments first, this will result in flagfile argument
422422
// being processed before any other argument in the command line. If
423423
// FLAGS_flagfile contains more than one file name we create multiple new

absl/meta/type_traits.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ struct is_trivially_relocatable
505505
#else
506506
// Otherwise we use a fallback that detects only those types we can feasibly
507507
// detect. Any time that has trivial move-construction and destruction
508-
// operations is by definition trivally relocatable.
508+
// operations is by definition trivially relocatable.
509509
template <class T>
510510
struct is_trivially_relocatable
511511
: absl::conjunction<absl::is_trivially_move_constructible<T>,

absl/random/discrete_distribution_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ TEST(DiscreteDistributionTest, ChiSquaredTest50) {
146146
using absl::random_internal::kChiSquared;
147147

148148
constexpr size_t kTrials = 10000;
149-
constexpr int kBuckets = 50; // inclusive, so actally +1
149+
constexpr int kBuckets = 50; // inclusive, so actually +1
150150

151151
// 1-in-100000 threshold, but remember, there are about 8 tests
152152
// in this file. And the test could fail for other reasons.

absl/random/internal/distribution_test_util.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ double BetaIncompleteImpl(const double x, const double p, const double q,
236236
}
237237
}
238238

239-
// NOTE: See also TOMS Alogrithm 708.
239+
// NOTE: See also TOMS Algorithm 708.
240240
// http://www.netlib.org/toms/index.html
241241
//
242242
// NOTE: The NWSC library also includes BRATIO / ISUBX (p87)

absl/random/internal/fast_uniform_bits_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ TEST(FastUniformBitsTest, RangeSize) {
167167
FakeUrbg<uint64_t, 0, (std::numeric_limits<uint64_t>::max)()>>()));
168168
}
169169

170-
// The constants need to be choosen so that an infinite rejection loop doesn't
170+
// The constants need to be chosen so that an infinite rejection loop doesn't
171171
// happen...
172172
using Urng1_5bit = FakeUrbg<uint8_t, 0, 2, 0>; // ~1.5 bits (range 3)
173173
using Urng4bits = FakeUrbg<uint8_t, 1, 0x10, 2>;

absl/random/internal/generate_real.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ inline RealType GenerateRealFromBits(uint64_t bits, int exp_bias = 0) {
7878
"GenerateRealFromBits must be parameterized by either float or double.");
7979

8080
static_assert(sizeof(uint_type) == sizeof(real_type),
81-
"Mismatched unsinged and real types.");
81+
"Mismatched unsigned and real types.");
8282

8383
static_assert((std::numeric_limits<real_type>::is_iec559 &&
8484
std::numeric_limits<real_type>::radix == 2),

absl/random/internal/mock_helpers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class MockHelpers {
101101
template <typename KeyT, typename URBG, typename... Args>
102102
static auto MaybeInvokeMock(URBG* urbg, Args&&... args)
103103
-> absl::optional<typename KeySignature<KeyT>::result_type> {
104-
// Use function overloading to dispatch to the implemenation since
104+
// Use function overloading to dispatch to the implementation since
105105
// more modern patterns (e.g. require + constexpr) are not supported in all
106106
// compiler configurations.
107107
return InvokeMockImpl<KeyT, typename KeySignature<KeyT>::result_type,

absl/random/internal/platform.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131

132132
// ABSL_RANDOM_INTERNAL_AES_DISPATCH indicates whether the currently active
133133
// platform has, or should use run-time dispatch for selecting the
134-
// acclerated Randen implementation.
134+
// accelerated Randen implementation.
135135
#define ABSL_RANDOM_INTERNAL_AES_DISPATCH 0
136136

137137
#if defined(ABSL_ARCH_X86_64)

absl/random/internal/randen_hwaes.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
// a hardware accelerated implementation of randen, or whether it
3232
// will contain stubs that exit the process.
3333
#if ABSL_HAVE_ACCELERATED_AES
34-
// The following plaforms have implemented RandenHwAes.
34+
// The following platforms have implemented RandenHwAes.
3535
#if defined(ABSL_ARCH_X86_64) || defined(ABSL_ARCH_X86_32) || \
3636
defined(ABSL_ARCH_PPC) || defined(ABSL_ARCH_ARM) || \
3737
defined(ABSL_ARCH_AARCH64)

absl/status/status.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ inline StatusToStringMode& operator^=(StatusToStringMode& lhs,
398398
//
399399
// * It may provide more fine-grained semantic information about the error to
400400
// facilitate actionable remedies.
401-
// * It may provide human-readable contexual information that is more
401+
// * It may provide human-readable contextual information that is more
402402
// appropriate to display to an end user.
403403
//
404404
// Example:
@@ -538,7 +538,7 @@ class Status final {
538538
//
539539
// * It may provide more fine-grained semantic information about the error
540540
// to facilitate actionable remedies.
541-
// * It may provide human-readable contexual information that is more
541+
// * It may provide human-readable contextual information that is more
542542
// appropriate to display to an end user.
543543
//
544544
// A payload consists of a [key,value] pair, where the key is a string

absl/strings/internal/cord_rep_ring.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ class CordRepRing : public CordRep {
430430
// capacity to satisfy `extra` extra nodes, and unref the old `rep` instance.
431431
//
432432
// If a new CordRepRing can not be allocated, or the new capacity would exceed
433-
// the maxmimum capacity, then the input is consumed only, and an exception is
433+
// the maximum capacity, then the input is consumed only, and an exception is
434434
// thrown.
435435
static CordRepRing* Mutable(CordRepRing* rep, size_t extra);
436436

absl/strings/internal/str_format/convert_test.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,9 +1241,9 @@ TEST_F(FormatConvertTest, GlibcHasCorrectTraits) {
12411241
const NativePrintfTraits &native_traits = VerifyNativeImplementation();
12421242
// If one of the following tests break then it is either because the above PP
12431243
// macro guards failed to exclude a new platform (likely) or because something
1244-
// has changed in the implemention of glibc sprintf float formatting behavior.
1245-
// If the latter, then the code that computes these flags needs to be
1246-
// revisited and/or possibly the StrFormat implementation.
1244+
// has changed in the implementation of glibc sprintf float formatting
1245+
// behavior. If the latter, then the code that computes these flags needs to
1246+
// be revisited and/or possibly the StrFormat implementation.
12471247
EXPECT_TRUE(native_traits.hex_float_has_glibc_rounding);
12481248
EXPECT_TRUE(native_traits.hex_float_prefers_denormal_repr);
12491249
EXPECT_TRUE(

absl/strings/internal/str_format/extension.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ struct FormatConversionSpecImplFriend;
273273

274274
class FormatConversionSpecImpl {
275275
public:
276-
// Width and precison are not specified, no flags are set.
276+
// Width and precision are not specified, no flags are set.
277277
bool is_basic() const { return flags_ == Flags::kBasic; }
278278
bool has_left_flag() const { return FlagsContains(flags_, Flags::kLeft); }
279279
bool has_show_pos_flag() const {

absl/strings/internal/str_format/float_conversion.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ void FormatA(const HexFloatTypeParams float_traits, Int mantissa, int exp,
937937

938938
// =============== Exponent ==================
939939
constexpr size_t kBufSizeForExpDecRepr =
940-
numbers_internal::kFastToBufferSize // requred for FastIntToBuffer
940+
numbers_internal::kFastToBufferSize // required for FastIntToBuffer
941941
+ 1 // 'p' or 'P'
942942
+ 1; // '+' or '-'
943943
char exp_buffer[kBufSizeForExpDecRepr];

absl/types/optional_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@ TEST(optionalTest, PointerStuff) {
996996

997997
// MSVC has a bug with "cv-qualifiers in class construction", fixed in 2017. See
998998
// https://docs.microsoft.com/en-us/cpp/cpp-conformance-improvements-2017#bug-fixes
999-
// The compiler some incorrectly ingores the cv-qualifier when generating a
999+
// The compiler some incorrectly ignores the cv-qualifier when generating a
10001000
// class object via a constructor call. For example:
10011001
//
10021002
// class optional {

0 commit comments

Comments
 (0)