Created
June 3, 2014 09:20
-
-
Save zofrex/664933ef108279300c94 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
let hi = "hi"; | |
let mut count = 0; | |
while count < 10 { | |
println!("count is {}", count); | |
count += 1; | |
} | |
static MONSTER_FACTOR: f64 = 57.8; | |
let monster_size = MONSTER_FACTOR * 10.0; | |
let monster_size: int = 50; | |
fn is_four(x: int) -> bool { | |
// No need for a return statement. The result of the expression | |
// is used as the return value. | |
x == 4 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment