Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUST

rust nesting loops

'outer: loop {

    loop {
        // break; // This would break only the inner loop

        break 'outer; // This breaks the outer loop
    }

}
Source by doc.rust-lang.org #
 
PREVIOUS NEXT
Tagged: #rust #nesting #loops
ADD COMMENT
Topic
Name
5+6 =