Skip to content

Instantly share code, notes, and snippets.

@willie-hung
Created August 1, 2023 17:47
Show Gist options
  • Save willie-hung/35f71dd5b0c50b0bf041de33ed62bc2d to your computer and use it in GitHub Desktop.
Save willie-hung/35f71dd5b0c50b0bf041de33ed62bc2d to your computer and use it in GitHub Desktop.
post_31
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