@@ -289,7 +289,7 @@ class Cord {
289
289
// Cord::EstimatedMemoryUsage()
290
290
//
291
291
// 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.
293
293
size_t EstimatedMemoryUsage (CordMemoryAccounting accounting_method =
294
294
CordMemoryAccounting::kTotal ) const ;
295
295
@@ -341,7 +341,7 @@ class Cord {
341
341
// ----------------------------------------------------------------------------
342
342
//
343
343
// 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
345
345
// of a Cord without modifying it.
346
346
//
347
347
// Generally, you do not instantiate a `Cord::ChunkIterator` directly;
@@ -462,7 +462,7 @@ class Cord {
462
462
class ChunkRange {
463
463
public:
464
464
// 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
466
466
// in various utilities expecting a subset of [container.requirements].
467
467
// For example, the below enables using `::testing::ElementsAre(...)`
468
468
using value_type = absl::string_view;
@@ -596,7 +596,7 @@ class Cord {
596
596
// producing an iterator which can be used within a range-based for loop.
597
597
// Construction of a `CharRange` will return an iterator pointing to the first
598
598
// 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.
600
600
//
601
601
// Implementation note: `CharRange` is simply a convenience wrapper over
602
602
// `Cord::char_begin()` and `Cord::char_end()`.
@@ -1500,7 +1500,7 @@ inline void Cord::ForEachChunk(
1500
1500
}
1501
1501
}
1502
1502
1503
- // Nonmember Cord-to-Cord relational operarators .
1503
+ // Nonmember Cord-to-Cord relational operators .
1504
1504
inline bool operator ==(const Cord& lhs, const Cord& rhs) {
1505
1505
if (lhs.contents_ .IsSame (rhs.contents_ )) return true ;
1506
1506
size_t rhs_size = rhs.size ();
0 commit comments