Skip to content

Commit

Permalink
Update examples/repeated_chars_iterator.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Radu Nichita <[email protected]>
  • Loading branch information
neatudarius and RaduNichita authored Nov 15, 2024
1 parent d23b7b0 commit 5d2762f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/repeated_chars_iterator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ int main() {
constexpr const std::string_view target = "foo";
constexpr const auto len = 7; // Number of extracted characters from the sequence.

// Create iterators that iterate over the sequence "foofoofoofoofoofoo...".
// Create iterators that go over the sequence "foofoofoofoofoofoo...".
repeated_chars_iterator it_first(target.data(), target.size(), 0); // target.size() == 3 is the length of "foo", 0 is this iterator's position.
repeated_chars_iterator it_last(target.data(), target.size(), len); // Same as above, but now the iterator's position is 7.

Expand Down

0 comments on commit 5d2762f

Please sign in to comment.