Skip to content

Commit e36b607

Browse files
Merge pull request #6 from pmcgee69/patch-1
Update main.cpp
2 parents 3917d50 + faba821 commit e36b607

File tree

1 file changed

+2
-2
lines changed
  • 02.04-coroutineLimitlessSequence0

1 file changed

+2
-2
lines changed

02.04-coroutineLimitlessSequence0/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ void UseCounterValue(int i);
9797
IntGenerator // #A Returning a coroutine object
9898
counter(int start, int end)
9999
{
100-
while(start < end) {
100+
while(start <= end) {
101101
co_yield start; // #B Yielding a value and giving control back to the caller
102102
++start;
103103
}
@@ -121,4 +121,4 @@ void UseCounterValue(int i)
121121
int main()
122122
{
123123
UseCounter();
124-
}
124+
}

0 commit comments

Comments
 (0)