Created
September 17, 2020 10:59
-
-
Save cuongld2/e797bd41ec4c1bcec5db83ef74e27f36 to your computer and use it in GitHub Desktop.
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 { | |
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