Created
August 1, 2023 17:47
-
-
Save willie-hung/35f71dd5b0c50b0bf041de33ed62bc2d 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 = add_one(69); | |
println!("Hello, world! {}", i); | |
} | |
fn add_one(x: i32) -> i32 { | |
x + 1; | |
} | |
// This code doesn't compile! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment