Last active
December 25, 2024 03:42
-
-
Save chikoski/5a4fd46062305cc90587ebd739f88c73 to your computer and use it in GitHub Desktop.
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
#[no_mangle] | |
pub fn add(left: u64, right: u64) -> u64 { | |
left + right | |
} | |
#[no_mangle] | |
pub fn four() { | |
let value = add(2, 2); | |
println!("2 + 2 = {value}"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment