A simple form of the loop is called loop:
loop { println!("Hello"); }
The preceding code has no loop-ending keywords, such as break; it will output Hello until the application is terminated manually.
A simple form of the loop is called loop:
loop { println!("Hello"); }
The preceding code has no loop-ending keywords, such as break; it will output Hello until the application is terminated manually.