'second_loop: loop { // now we are inside `second_loop
The second counter is now: 0
println!("The second counter is now: {}", counter2);
The second counter is now: 1
counter2 += 1;
The second counter is now: 2
if counter2 == 3 {
break 'first_loop; // Break out of 'first_loop so we can exit the program
}
}
}
}
}
```
```
A `while` loop is a loop that continues while something is still `true`. Each loop, Rust will check if it is still `true`. If it becomes `false`, Rust will stop the loop.
A `while` loop is a loop that continues while something is still `true`. Each loop, Rust will check if it is still `true`. If it becomes `false`, Rust will stop the loop.