From 5d2762fe231fb7bca3096f9b86d1d92b6689dd9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Darius=20Nea=C8=9Bu?= Date: Fri, 15 Nov 2024 13:31:42 +0200 Subject: [PATCH] Update examples/repeated_chars_iterator.cpp Co-authored-by: Radu Nichita <45298861+RaduNichita@users.noreply.github.com> --- examples/repeated_chars_iterator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/repeated_chars_iterator.cpp b/examples/repeated_chars_iterator.cpp index 103b887..4d69aad 100644 --- a/examples/repeated_chars_iterator.cpp +++ b/examples/repeated_chars_iterator.cpp @@ -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.