Skip to content

Instantly share code, notes, and snippets.

@huonw
Created January 15, 2014 12:42
Show Gist options
  • Save huonw/8435502 to your computer and use it in GitHub Desktop.
Save huonw/8435502 to your computer and use it in GitHub Desktop.
do-while loops in Rust
while {
let x = foo();
bar(x);
x != 0
} {}
@donbright
Copy link

really helps porting javascript . thanks

@DarkblooM-IO
Copy link

Here have a star

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment