3 ms·
In the contrived Python example, FizzBuzzItem is only called if the result is a number (not in any of the modulo 0 cases) - is that intended? I can see that it
by dhon_ 12y ago
In the contrived Python example, FizzBuzzItem is only called if the result is a number (not in any of the modulo 0 cases) - is that intended? I can see that it works, but it's breaking the analogy for me with the Rust code.
- chrismorgan 12y agoWhoa, that was indeed a mistake. Sorry about that. Fixed.
- dhon_ 12y agoThanks, also is the "try it" link on rust playpen linking to the wrong code?
- chrismorgan 12y agoNo, that’s the code that is supposed to be there. It’s indicating that there is nothing that you can put as the lifetime there.