From a6a08927f762a0d30c8e199cd2c1386ee2e08d0e Mon Sep 17 00:00:00 2001 From: Andinus Date: Tue, 7 Sep 2021 21:16:54 +0530 Subject: Rust: Add Hello World & Lucian's Luscious Lasagna --- rust/hello-world/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 rust/hello-world/src/lib.rs (limited to 'rust/hello-world/src') diff --git a/rust/hello-world/src/lib.rs b/rust/hello-world/src/lib.rs new file mode 100644 index 0000000..5c2db6d --- /dev/null +++ b/rust/hello-world/src/lib.rs @@ -0,0 +1,4 @@ +// &'static is a "lifetime specifier", something you'll learn more about later +pub fn hello() -> &'static str { + "Hello, World!" +} -- cgit 1.4.1-2-gfad0