Created
August 1, 2023 17:28
-
-
Save willie-hung/dd377ad72d835a44dcbc892073db9856 to your computer and use it in GitHub Desktop.
post_31
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 i = { | |
// This is a statement | |
let j = 69; | |
// This is an expression | |
j + 1 | |
}; | |
println!("Hello, world! {}", i); | |
} | |
// Output: | |
// Hello, world! 70 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment