Skip to content

Instantly share code, notes, and snippets.

@Thesephi
Last active November 8, 2024 02:54
Show Gist options
  • Save Thesephi/a0d1525c34c319ff61f2a8eebe43b41e to your computer and use it in GitHub Desktop.
Save Thesephi/a0d1525c34c319ff61f2a8eebe43b41e to your computer and use it in GitHub Desktop.
a very simple rust function, to demonstrate on https://zzzz.dev
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