Skip to content

Commit 2845256

Browse files
committed
Fix typos in comments
Signed-off-by: co63oc <co63oc@users.noreply.github.com>
1 parent 8b2b78b commit 2845256

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

absl/base/attributes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@
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
342+
// pseudo op which includes an additional integer as part of its syntax indicating
343343
// alignment. If data fall under different alignments then you might get a
344344
// compilation error indicating a `Section type conflict`.
345345
#define ABSL_ATTRIBUTE_SECTION_VARIABLE(name)

absl/base/internal/sysinfo_test.cc

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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:

absl/time/internal/cctz/include/cctz/time_zone.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ class time_zone {
200200
// version() and description() provide additional information about the
201201
// time zone. The content of each of the returned strings is unspecified,
202202
// however, when the IANA Time Zone Database is the underlying data source
203-
// the version() string will be in the familar form (e.g, "2018e") or
203+
// the version() string will be in the familiar form (e.g, "2018e") or
204204
// empty when unavailable.
205205
//
206206
// Note: These functions are for informational or testing purposes only.

0 commit comments

Comments
 (0)