Created
September 17, 2020 10:57
Star
You must be signed in to star a gist
Rust consistent
This file contains 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
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