dlang-tour / core

D Language online tour (https://tour.dlang.org/) and online editor (https://run.dlang.io/)
Boost Software License 1.0
117 stars 47 forks source link

Fibonacchi Even is odd in Basic/Ranges #736

Closed Yasei-no-otoko closed 4 years ago

Yasei-no-otoko commented 4 years ago

https://tour.dlang.org/tour/en/basics/ranges

// Select the even subset
auto fibEven = fib5.filter!(x => x % 2);
writeln("FibEven : ", fibEven);

Correct

// Select the even subset
auto fibEven = fib5.filter!(x => x % 2 == 0);
writeln("FibEven : ", fibEven);
PetarKirov commented 4 years ago

Thanks, it's now fixed by https://github.com/dlang-tour/english/pull/296. Expect a new website deployment later this week.