Skip to content

Commit 5e2b344

Browse files
committed
Update generic_enumerable_generator.cpp
1 parent 34ac27f commit 5e2b344

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/xtd.core.examples/generic_collections/generic_enumerable_generator/src/generic_enumerable_generator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include <xtd/xtd>
22

3-
auto odd_numbers_generator(int count = 100, int min_value = 0, int max_value = 100) -> enumerable_generator<int> {
3+
[[nodiscard]] auto odd_numbers_generator(int count = 100, int min_value = 0, int max_value = 100) -> enumerable_generator<int> {
44
auto rnd = xtd::random();
55
for (auto index = 0; index <= count; ++index)
66
co_yield rnd.next(min_value, max_value) | 1;

0 commit comments

Comments
 (0)