| Index: base/strings/utf_offset_string_conversions.h
|
| ===================================================================
|
| --- base/strings/utf_offset_string_conversions.h (revision 221015)
|
| +++ base/strings/utf_offset_string_conversions.h (working copy)
|
| @@ -44,14 +44,14 @@
|
| std::vector<size_t>* offsets_for_adjustment);
|
|
|
| // Limiting function callable by std::for_each which will replace any value
|
| -// which is equal to or greater than |limit| with npos.
|
| +// which is greater than |limit| with npos.
|
| template <typename T>
|
| struct LimitOffset {
|
| explicit LimitOffset(size_t limit)
|
| : limit_(limit) {}
|
|
|
| void operator()(size_t& offset) {
|
| - if (offset >= limit_)
|
| + if (offset > limit_)
|
| offset = T::npos;
|
| }
|
|
|
|
|