Skip to content

Commit d60c3ac

Browse files
committed
Fix spelling mistakes
1 parent 3132b83 commit d60c3ac

18 files changed

+21
-21
lines changed

absl/container/flat_hash_set.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ class flat_hash_set
343343
// for the past-the-end iterator, which is invalidated.
344344
//
345345
// `swap()` requires that the flat hash set's hashing and key equivalence
346-
// functions be Swappable, and are exchaged using unqualified calls to
346+
// functions be Swappable, and are exchanged using unqualified calls to
347347
// non-member `swap()`. If the set's allocator has
348348
// `std::allocator_traits<allocator_type>::propagate_on_container_swap::value`
349349
// set to `true`, the allocators are also exchanged using an unqualified call

absl/container/inlined_vector.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ class InlinedVector {
816816

817817
void MoveAssignment(MemcpyPolicy, InlinedVector&& other) {
818818
// Assumption check: we shouldn't be told to use memcpy to implement move
819-
// asignment unless we have trivially destructible elements and an allocator
819+
// assignment unless we have trivially destructible elements and an allocator
820820
// that does nothing fancy.
821821
static_assert(absl::is_trivially_destructible<value_type>::value, "");
822822
static_assert(std::is_same<A, std::allocator<value_type>>::value, "");

absl/container/node_hash_map.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ class node_hash_map
404404
// for the past-the-end iterator, which is invalidated.
405405
//
406406
// `swap()` requires that the node hash map's hashing and key equivalence
407-
// functions be Swappable, and are exchaged using unqualified calls to
407+
// functions be Swappable, and are exchanged using unqualified calls to
408408
// non-member `swap()`. If the map's allocator has
409409
// `std::allocator_traits<allocator_type>::propagate_on_container_swap::value`
410410
// set to `true`, the allocators are also exchanged using an unqualified call

absl/crc/internal/crc.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class CRC {
6868
// any reduction of error-detection ability in the outer CRC.
6969
// Unscramble() performs the inverse transformation.
7070
// It is strongly recommended that CRCs be scrambled before storage or
71-
// transmission, and unscrambled at the other end before futher manipulation.
71+
// transmission, and unscrambled at the other end before further manipulation.
7272
virtual void Scramble(uint32_t* crc) const = 0;
7373
virtual void Unscramble(uint32_t* crc) const = 0;
7474

absl/crc/internal/crc_cord_state.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class CrcCordState {
109109
// Returns true if the chunked CRC32C cached is normalized.
110110
bool IsNormalized() const { return rep().removed_prefix.length == 0; }
111111

112-
// Normalizes the chunked CRC32C checksum cache by substracting any removed
112+
// Normalizes the chunked CRC32C checksum cache by subtracting any removed
113113
// prefix from the chunks.
114114
void Normalize();
115115

absl/crc/internal/crc_internal.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ constexpr uint64_t kScrambleHi = (static_cast<uint64_t>(0x4f1bbcdcU) << 32) |
6060
constexpr uint64_t kScrambleLo = (static_cast<uint64_t>(0xf9ce6030U) << 32) |
6161
static_cast<uint64_t>(0x2e76e41bU);
6262

63-
class CRCImpl : public CRC { // Implemention of the abstract class CRC
63+
class CRCImpl : public CRC { // Implementation of the abstract class CRC
6464
public:
6565
using Uint32By256 = uint32_t[256];
6666

absl/crc/internal/crc_x86_arm_combined.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ class CRC32AcceleratedX86ARMCombinedMultipleStreams
515515
}
516516

517517
for (size_t i = 1; i < bs; i++) {
518-
// Prefetch data for next itterations.
518+
// Prefetch data for next iterations.
519519
for (size_t j = 0; j < num_crc_streams; j++) {
520520
PrefetchToLocalCache(
521521
reinterpret_cast<const char*>(crc_streams[j] + kPrefetchHorizon));

absl/flags/commandlineflag.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ class CommandLineFlag {
186186
// command line.
187187
virtual bool IsSpecifiedOnCommandLine() const = 0;
188188

189-
// Validates supplied value usign validator or parseflag routine
189+
// Validates supplied value using validator or parseflag routine
190190
virtual bool ValidateInputValue(absl::string_view value) const = 0;
191191

192192
// Checks that flags default value can be converted to string and back to the

absl/flags/internal/flag.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ void FlagImpl::StoreValue(const void* src) {
238238
switch (ValueStorageKind()) {
239239
case FlagValueStorageKind::kValueAndInitBit:
240240
case FlagValueStorageKind::kOneWordAtomic: {
241-
// Load the current value to avoid setting 'init' bit manualy.
241+
// Load the current value to avoid setting 'init' bit manually.
242242
int64_t one_word_val = OneWordValue().load(std::memory_order_acquire);
243243
std::memcpy(&one_word_val, src, Sizeof(op_));
244244
OneWordValue().store(one_word_val, std::memory_order_release);

absl/flags/internal/flag.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -223,12 +223,12 @@ extern const char kStrippedFlagHelp[];
223223
// first overload if possible. If help message is evaluatable on constexpr
224224
// context We'll be able to make FixedCharArray out of it and we'll choose first
225225
// overload. In this case the help message expression is immediately evaluated
226-
// and is used to construct the absl::Flag. No additionl code is generated by
226+
// and is used to construct the absl::Flag. No additional code is generated by
227227
// ABSL_FLAG Otherwise SFINAE kicks in and first overload is dropped from the
228228
// consideration, in which case the second overload will be used. The second
229229
// overload does not attempt to evaluate the help message expression
230-
// immediately and instead delays the evaluation by returing the function
231-
// pointer (&T::NonConst) genering the help message when necessary. This is
230+
// immediately and instead delays the evaluation by returning the function
231+
// pointer (&T::NonConst) generating the help message when necessary. This is
232232
// evaluatable in constexpr context, but the cost is an extra function being
233233
// generated in the ABSL_FLAG code.
234234
template <typename Gen, size_t N>

absl/flags/internal/flag_msvc.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
// second level of protection is a global Mutex, so if two threads attempt to
3030
// construct the flag concurrently only one wins.
3131
//
32-
// This solution is based on a recomendation here:
32+
// This solution is based on a recommendation here:
3333
// https://developercommunity.visualstudio.com/content/problem/336946/class-with-constexpr-constructor-not-using-static.html?childToView=648454#comment-648454
3434

3535
namespace flags_internal {

absl/functional/function_ref_test.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ TEST(FunctionRef, PassByValueTypes) {
257257
"Reference types should be preserved");
258258

259259
// Make sure the address of an object received by reference is the same as the
260-
// addess of the object passed by the caller.
260+
// address of the object passed by the caller.
261261
{
262262
LargeTrivial obj;
263263
auto test = [&obj](LargeTrivial& input) { ASSERT_EQ(&input, &obj); };

absl/random/internal/uniform_helper.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ using UniformDistribution =
217217
// UniformDistributionWrapper is used as the underlying distribution type
218218
// by the absl::Uniform template function. It selects the proper Abseil
219219
// uniform distribution and provides constructor overloads that match the
220-
// expected parameter order as well as adjusting distribtuion bounds based
220+
// expected parameter order as well as adjusting distribution bounds based
221221
// on the tag.
222222
template <typename NumType>
223223
struct UniformDistributionWrapper : public UniformDistribution<NumType> {

absl/strings/internal/stl_type_traits.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414
//
1515

16-
// Thie file provides the IsStrictlyBaseOfAndConvertibleToSTLContainer type
16+
// The file provides the IsStrictlyBaseOfAndConvertibleToSTLContainer type
1717
// trait metafunction to assist in working with the _GLIBCXX_DEBUG debug
1818
// wrappers of STL containers.
1919
//

absl/synchronization/mutex.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ class ABSL_LOCKABLE Mutex {
273273
// Aliases for `Mutex::Lock()`, `Mutex::Unlock()`, and `Mutex::TryLock()`.
274274
//
275275
// These methods may be used (along with the complementary `Reader*()`
276-
// methods) to distingish simple exclusive `Mutex` usage (`Lock()`,
276+
// methods) to distinguish simple exclusive `Mutex` usage (`Lock()`,
277277
// etc.) from reader/writer lock usage.
278278
void WriterLock() ABSL_EXCLUSIVE_LOCK_FUNCTION() { this->Lock(); }
279279

absl/synchronization/mutex_method_pointer_test.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ class IncompleteClass;
2626

2727
#ifdef _MSC_VER
2828
// These tests verify expectations about sizes of MSVC pointers to methods.
29-
// Pointers to methods are distinguished by whether their class hierachies
30-
// contain single inheritance, multiple inheritance, or virtual inheritence.
29+
// Pointers to methods are distinguished by whether their class hierarchies
30+
// contain single inheritance, multiple inheritance, or virtual inheritance.
3131

3232
// Declare classes of the various MSVC inheritance types.
3333
class __single_inheritance SingleInheritance{};

absl/time/civil_time_test.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1228,7 +1228,7 @@ TEST(CivilTime, DocumentationExample) {
12281228
EXPECT_EQ(0, day_floor.hour()); // 09:09:09 is floored
12291229
EXPECT_EQ(absl::CivilDay(2015, 1, 2), day_floor);
12301230

1231-
// Unspecified fields default to their minium value
1231+
// Unspecified fields default to their minimum value
12321232
absl::CivilDay day_default(2015); // Defaults to Jan 1
12331233
EXPECT_EQ(absl::CivilDay(2015, 1, 1), day_default);
12341234

absl/time/time.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ inline TimeConversion InfinitePastTimeConversion() {
137137
}
138138

139139
// Makes a Time from sec, overflowing to InfiniteFuture/InfinitePast as
140-
// necessary. If sec is min/max, then consult cs+tz to check for overlow.
140+
// necessary. If sec is min/max, then consult cs+tz to check for overflow.
141141
Time MakeTimeWithOverflow(const cctz::time_point<cctz::seconds>& sec,
142142
const cctz::civil_second& cs,
143143
const cctz::time_zone& tz,

0 commit comments

Comments
 (0)