-
-
Save archer884/8c135b5aef0caf857db9474615b8f770 to your computer and use it in GitHub Desktop.
do-while loops in Rust
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while { | |
let x = foo(); | |
bar(x); | |
x != 0 | |
} {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Totally keeping this for reference. Interesting note: the
{}
at the end seems optional.