Skip to content

Commit 48f72c2

Browse files
Abseil Teamcopybara-github
Abseil Team
authored andcommitted
Fix typos.
PiperOrigin-RevId: 451434783 Change-Id: I572e77a67e18e8dd530bf0347c76863c9bb1946f
1 parent 8cc2e34 commit 48f72c2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

absl/strings/cord.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ class Cord {
289289
// Cord::EstimatedMemoryUsage()
290290
//
291291
// Returns the *approximate* number of bytes held by this cord.
292-
// See CordMemoryAccounting for more information on accounting method used.
292+
// See CordMemoryAccounting for more information on the accounting method.
293293
size_t EstimatedMemoryUsage(CordMemoryAccounting accounting_method =
294294
CordMemoryAccounting::kTotal) const;
295295

@@ -341,7 +341,7 @@ class Cord {
341341
//----------------------------------------------------------------------------
342342
//
343343
// A `Cord::ChunkIterator` allows iteration over the constituent chunks of its
344-
// Cord. Such iteration allows you to perform non-const operatons on the data
344+
// Cord. Such iteration allows you to perform non-const operations on the data
345345
// of a Cord without modifying it.
346346
//
347347
// Generally, you do not instantiate a `Cord::ChunkIterator` directly;
@@ -462,7 +462,7 @@ class Cord {
462462
class ChunkRange {
463463
public:
464464
// Fulfill minimum c++ container requirements [container.requirements]
465-
// Theses (partial) container type definitions allow ChunkRange to be used
465+
// These (partial) container type definitions allow ChunkRange to be used
466466
// in various utilities expecting a subset of [container.requirements].
467467
// For example, the below enables using `::testing::ElementsAre(...)`
468468
using value_type = absl::string_view;
@@ -596,7 +596,7 @@ class Cord {
596596
// producing an iterator which can be used within a range-based for loop.
597597
// Construction of a `CharRange` will return an iterator pointing to the first
598598
// character of the Cord. Generally, do not construct a `CharRange` directly;
599-
// instead, prefer to use the `Cord::Chars()` method show below.
599+
// instead, prefer to use the `Cord::Chars()` method shown below.
600600
//
601601
// Implementation note: `CharRange` is simply a convenience wrapper over
602602
// `Cord::char_begin()` and `Cord::char_end()`.
@@ -1500,7 +1500,7 @@ inline void Cord::ForEachChunk(
15001500
}
15011501
}
15021502

1503-
// Nonmember Cord-to-Cord relational operarators.
1503+
// Nonmember Cord-to-Cord relational operators.
15041504
inline bool operator==(const Cord& lhs, const Cord& rhs) {
15051505
if (lhs.contents_.IsSame(rhs.contents_)) return true;
15061506
size_t rhs_size = rhs.size();

0 commit comments

Comments
 (0)