Last active
November 8, 2024 02:54
-
-
Save Thesephi/a0d1525c34c319ff61f2a8eebe43b41e to your computer and use it in GitHub Desktop.
a very simple rust function, to demonstrate on https://zzzz.dev
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
use std::env; | |
pub fn main() { | |
let args: Vec<String> = env::args().collect(); | |
let mut ret_val = String::from("hello, "); | |
ret_val.push_str(&args[1]); | |
ret_val.push_str("\n"); | |
ret_val.push_str("try calling me like https://fd96bd80a0d79fe3831f67a461d064b6.run.zzzz.dev/mommy"); | |
println!("{}", ret_val); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment