Skip to content

Commit

Permalink
Address ai comment
Browse files Browse the repository at this point in the history
  • Loading branch information
CorentinBT committed Aug 21, 2024
1 parent 868a8d6 commit 4939c91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/examples/rpp/doxygen/retry_when.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ int main()
//! [retry_when delay]
size_t retry_count = 0;
rpp::source::create<std::string>([&retry_count](const auto& sub) {
if (retry_count != 4)
if (++retry_count != 4)
{
sub.on_error({});
}
Expand All @@ -32,7 +32,7 @@ int main()
//! [retry_when]
retry_count = 0;
rpp::source::create<std::string>([&retry_count](const auto& sub) {
if (retry_count != 4)
if (++retry_count != 4)
{
sub.on_error({});
}
Expand Down

0 comments on commit 4939c91

Please sign in to comment.