Skip to content

Instantly share code, notes, and snippets.

@cuongld2
Created September 17, 2020 10:59
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 cuongld2/e797bd41ec4c1bcec5db83ef74e27f36 to your computer and use it in GitHub Desktop.
Save cuongld2/e797bd41ec4c1bcec5db83ef74e27f36 to your computer and use it in GitHub Desktop.
Rust consistent
fn main() {
let condition = true;
let number = if condition {
8
} else {
10
};
println!("The value of number is: {}", number);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment