Skip to content

Commit 8dfced2

Browse files
co63occopybara-github
authored andcommitted
PR abseil#1878: Fix typos in comments
Imported from GitHub PR abseil#1878 Fix typos in comments found by codespell command. Merge 2845256 into 7bf6d79 Merging this change closes abseil#1878 COPYBARA_INTEGRATE_REVIEW=abseil#1878 from co63oc:fix1 2845256 PiperOrigin-RevId: 750227488 Change-Id: I7dd87ccb83525692df9f4b504bcd747814497ac8
1 parent 8cd5bdc commit 8dfced2

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

absl/base/attributes.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -339,9 +339,9 @@
339339
#ifndef ABSL_ATTRIBUTE_SECTION_VARIABLE
340340
#ifdef _AIX
341341
// __attribute__((section(#name))) on AIX is achieved by using the `.csect`
342-
// psudo op which includes an additional integer as part of its syntax indcating
343-
// alignment. If data fall under different alignments then you might get a
344-
// compilation error indicating a `Section type conflict`.
342+
// pseudo op which includes an additional integer as part of its syntax
343+
// indicating alignment. If data fall under different alignments then you might
344+
// get a compilation error indicating a `Section type conflict`.
345345
#define ABSL_ATTRIBUTE_SECTION_VARIABLE(name)
346346
#else
347347
#define ABSL_ATTRIBUTE_SECTION_VARIABLE(name) __attribute__((section(#name)))

absl/base/internal/sysinfo_test.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ TEST(SysinfoTest, GetTID) {
4141
EXPECT_EQ(GetTID(), GetTID()); // Basic compile and equality test.
4242
#ifdef __native_client__
4343
// Native Client has a race condition bug that leads to memory
44-
// exaustion when repeatedly creating and joining threads.
44+
// exhaustion when repeatedly creating and joining threads.
4545
// https://bugs.chromium.org/p/nativeclient/issues/detail?id=1027
4646
return;
4747
#endif

absl/container/internal/raw_hash_set.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ ABSL_ATTRIBUTE_ALWAYS_INLINE inline void InitializeSingleElementControlBytes(
466466

467467
// Initializes control bytes for growing after SOO to the next capacity.
468468
// `soo_ctrl` is placed in the position `SooSlotIndex()`.
469-
// `new_hash` is placed in the postion `new_offset`.
469+
// `new_hash` is placed in the position `new_offset`.
470470
// The table must be non-empty SOO.
471471
ABSL_ATTRIBUTE_ALWAYS_INLINE inline void
472472
InitializeThreeElementsControlBytesAfterSoo(ctrl_t soo_ctrl, size_t new_hash,

absl/hash/hash_instantiated_test.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ using ::absl::hash_test_internal::TypeErasedContainer;
5151

5252
// Dummy type with unordered equality and hashing semantics. This preserves
5353
// input order internally, and is used below to ensure we get test coverage
54-
// for equal sequences with different iteraton orders.
54+
// for equal sequences with different iteration orders.
5555
template <typename T>
5656
class UnorderedSequence {
5757
public:

absl/random/gaussian_distribution.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ inline double gaussian_distribution_base::zignor(
244244
bits); // U(-1, 1)
245245
const double x = j * zg_.x[i];
246246

247-
// Retangular box. Handles >97% of all cases.
247+
// Rectangular box. Handles >97% of all cases.
248248
// For any given box, this handles between 75% and 99% of values.
249249
// Equivalent to U(01) < (x[i+1] / x[i]), and when i == 0, ~93.5%
250250
if (std::abs(x) < zg_.x[i + 1]) {

absl/status/statusor_test.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ TEST(StatusOr, TestAssignmentStatusOk) {
459459
EXPECT_EQ(p, *source);
460460
}
461461

462-
// Move asssignment
462+
// Move assignment
463463
{
464464
const auto p = std::make_shared<int>(17);
465465
absl::StatusOr<std::shared_ptr<int>> source(p);

absl/strings/internal/charconv_bigint_test.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ TEST(BigUnsigned, MultiplyByBigUnsigned) {
176176

177177
TEST(BigUnsigned, MultiplyByOverflow) {
178178
{
179-
// Check that multiplcation overflow predictably truncates.
179+
// Check that multiplication overflow predictably truncates.
180180

181181
// A big int with all bits on.
182182
BigUnsigned<4> all_bits_on("340282366920938463463374607431768211455");

absl/strings/str_format.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ using FormatArg = str_format_internal::FormatArgImpl;
609609
//
610610
// Note that unlike with AbslFormatConvert(), AbslStringify() does not allow
611611
// customization of allowed conversion characters. AbslStringify() uses `%v` as
612-
// the underlying conversion specififer. Additionally, AbslStringify() supports
612+
// the underlying conversion specifier. Additionally, AbslStringify() supports
613613
// use with absl::StrCat while AbslFormatConvert() does not.
614614
//
615615
// Example:

0 commit comments

Comments
 (0)