- Learning Rust
- Paul Johnson Vesa Kaihlavirta
- 37字
- 2021-07-02 23:07:24
The simple loop
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.