diff --git a/examples/coroutine2.cc b/examples/coroutine2.cc index eac0406..b9f8ecf 100644 --- a/examples/coroutine2.cc +++ b/examples/coroutine2.cc @@ -4,7 +4,7 @@ using namespace ostd; int main() { - generator g = [](auto yield) -> void { + generator g = [](auto yield) { for (int i: range(5, 26, 5)) { yield(i); }