Skip to content

Instantly share code, notes, and snippets.

@cuongld2
Created September 17, 2020 10:57
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save cuongld2/f978157a88880af3deb6680db6d11bd3 to your computer and use it in GitHub Desktop.
Rust consistent
fn main() {
let condition = true;
let number = if condition {
5
} else {
"six"
};
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