Last active
August 29, 2015 14:02
-
-
Save gilles-leblanc/6e3652c70c91c4ccce9a to your computer and use it in GitHub Desktop.
Rust: expressions 4
This file contains hidden or 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
let bool_value = true; | |
let int_value = | |
if bool_value == true { | |
1 | |
} else { | |
0 | |
}; | |
println!("{}", int_value); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment