Last active
December 3, 2018 13:22
-
-
Save toshimasa-nanaki/6950fb82d0fb36407a69a2a9a1012e5e to your computer and use it in GitHub Desktop.
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
fn main() { | |
loop { | |
println!("infinite loop"); | |
} | |
//以下のようにも書けるが非推奨。 | |
//while true{ | |
// println!("infinite loop"); | |
//} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment