Skip to content

Instantly share code, notes, and snippets.

@willie-hung
Created August 1, 2023 17:32
Show Gist options
  • Save willie-hung/ca48ac339ef1eb9b489d4c0bf3182e23 to your computer and use it in GitHub Desktop.
Save willie-hung/ca48ac339ef1eb9b489d4c0bf3182e23 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
}
// Output:
// Hello, world! 70
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment