Skip to content

Instantly share code, notes, and snippets.

@freeformz
Last active August 29, 2015 14:06
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 freeformz/10795d4287658c95a8b1 to your computer and use it in GitHub Desktop.
Save freeformz/10795d4287658c95a8b1 to your computer and use it in GitHub Desktop.
test ()
test muffin item
fn main() {
let item = "muffin";
let thing1 =
if item == "salad" {
"salad item";
} else if item == "muffin" {
"muffin item";
} else {
"other item";
};
println!("test {}", thing1)
let thing2 =
if item == "salad" {
"salad item"
} else if item == "muffin" {
"muffin item"
} else {
"other item"
};
println!("test {}", thing2)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment