Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

Rust Programming Tutorial #7 – Infinite Loop

35K views on YouTube

dcode 42 tutorials here

Alright so today we’re looking at how we can put infinite loops in our Rust programs – this is done through the ‘loop’ keyword.

We also take a look at ‘break’ which is helpful when backing out of the loop and the ‘continue’ statement when we want to skip over some stuff.

If this video helped you out and you’d like to see more, make sure to leave a like and subscribe to dcode!