News for hackers. Stuff that matters.
Re:Rust for JavaScript Developers – Functions and Control Flow by bad-apple on Monday July 06, 2020 @03:29AM (#23745538)
Nitpick: I'm pretty sure that "11..50" should be a "10..50".
Re:Rust for JavaScript Developers – Functions and Control Flow by TheDong on Monday July 06, 2020 @03:38AM (#23745584)
Edited, yeah. Off-by-one errors, can't live without em.
Re:Rust for JavaScript Developers – Functions and Control Flow by bad-apple on Monday July 06, 2020 @04:04AM (#23745695)
If you'd used 50.. instead of _, Rust would've caught this error for you. ;)

https://play.rust-lang.org/?version=nightly&mode=release&edi...