Skip to content

Instantly share code, notes, and snippets.

@zofrex
Created June 3, 2014 09:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zofrex/664933ef108279300c94 to your computer and use it in GitHub Desktop.
Save zofrex/664933ef108279300c94 to your computer and use it in GitHub Desktop.
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